• New users and semaphores?

    From The Leprechaun@1:229/2 to All on Monday, May 03, 2021 18:36:24
    From: nospam.The.Leprechaun@p52.f426.n229.z1.fidonet.org

    Does Mystic create a semaphore (or some other flag) when a new user is created?
    I'm asking because I need to invoke an external process after new users are created. I could just have my tool read the user.dat file after each log off but was wondering if there was a more gracefull solution.

    Andy

    --- SoupGate-Win32 v1.05
    * Origin: www.darkrealms.ca (1:229/2)
  • From g00r00@1:229/2 to All on Monday, May 03, 2021 22:01:21
    From: nospam.g00r00@f215.n129.z1.fidonet.org

    Does Mystic create a semaphore (or some other flag) when a new user is created? I'm asking because I need to invoke an external process after new users are cre ated. I could just have my tool read the user.dat
    file after each log off but w as wondering if there was a more gracefull solution.

    You could use a small MPL script to do whatever you want on their first call:

    Uses USER

    Begin
    GetThisUser

    If UserLastOn = 0 Then
    WriteLn('This is my first call! Press a key|PN');
    End

    I could probably make an ACS flag for their first call too if desired.. Maybe "OC" could return true if its their first call

    --- SoupGate-Win32 v1.05
    * Origin: www.darkrealms.ca (1:229/2)
  • From The Leprechaun@1:229/2 to The Leprechaun on Tuesday, May 04, 2021 09:57:48
    From: nospam.The.Leprechaun@p52.f426.n229.z1.fidonet.org

    On 03 May 2021, The Leprechaun said the following...

    Does Mystic create a semaphore (or some other flag) when a new user is created?

    I'm asking because I need to invoke an external process after new users are created. I could just have my tool read the user.dat file after
    each log off but was wondering if there was a more gracefull solution.

    I figured it out. I wasn't far off but didn't have the bytes set correctly.

    --- SoupGate-Win32 v1.05
    * Origin: www.darkrealms.ca (1:229/2)