• Door Game Nightly Maintenance

    From Cozmo@21:3/135 to All on Sun Dec 12 10:55:12 2021
    I have a door game that I have to run a nightly maintenance program on called maint.exe. I setup a nightly event in the event editor and set the time and days to run the event. My question is: do i run the Event Type as Shell, BBS or something else? Also should I run a .bat file or just run maint.exe with the path c:\mystic\doors\apoc\maint.exe?

    Thanks
    Cozmo

    --- Mystic BBS v1.12 A47 2021/04/08 (Windows/32)
    * Origin: Lunatics Unleashed BBS (21:3/135)
  • From Zip@21:1/202 to Cozmo on Sun Dec 12 19:15:05 2021
    Hello Cozmo!

    On 12 Dec 2021, Cozmo said the following...
    I have a door game that I have to run a nightly maintenance program on called maint.exe. I setup a nightly event in the event editor and set
    the time and days to run the event. My question is: do i run the Event Type as Shell, BBS or something else? Also should I run a .bat file or just run maint.exe with the path c:\mystic\doors\apoc\maint.exe?

    The Event Type should be "Shell"; a "BBS" event merely kicks out all users currently being logged on. See http://wiki.mysticbbs.com/doku.php?id=whats_new_110 (search for "TYPE2") for a more detailed description of the different event types. =)

    You can let it execute maint.exe, i.e. there's no need for a .BAT file if that's all the .BAT file would do.

    Events execute with the Mystic "base" directory as the current working directory, so you can probably specify doors\apoc\maint.exe as the path if you wish.

    Hope this helps!

    Best regards
    Zip

    --- Mystic BBS v1.12 A47 2021/12/10 (Linux/64)
    * Origin: Star Collision BBS, Uppsala, Sweden (21:1/202)
  • From Cozmo@21:3/135 to Zip on Mon Dec 13 07:52:31 2021
    You can let it execute maint.exe, i.e. there's no need for a .BAT file if that's all the .BAT file would do.

    I was actually running the event the way you suggested. I wasn;t sure if that was the correct way because the event was running when it was suppose to but I don't think the maint.exe file is being run. None of the files it's suppose to update are being updated. If I run the maint.exe from a DOS prompt it runs fine and changes the files. So I can't figure out why it's not working correctly when the event is run.

    --- Mystic BBS v1.12 A47 2021/04/08 (Windows/32)
    * Origin: Lunatics Unleashed BBS (21:3/135)
  • From Zip@21:1/202 to Cozmo on Tue Dec 14 15:04:55 2021
    Hello Cozmo!

    On 13 Dec 2021, Cozmo said the following...
    suppose to but I don't think the maint.exe file is being run. None of
    the files it's suppose to update are being updated. If I run the

    Is there some logfile from maint.exe?

    If not, you might be able to store the output to a logfile on your own by specifying something like the following as the shell command:

    c:\mystic\doors\apoc\maint.exe > c:\mystic\logs\maint.log 2>&1

    ...and then checking for any errors in the maint.log logfile.

    The 2>&1 will try to ensure that stderr (errors) also get stored to the logfile.

    Hope this helps!

    Best regards
    Zip

    --- Mystic BBS v1.12 A47 2021/12/10 (Linux/64)
    * Origin: Star Collision BBS, Uppsala, Sweden (21:1/202)
  • From Cozmo@21:3/135 to Zip on Thu Dec 16 07:49:53 2021
    Is there some logfile from maint.exe?

    Maint.exe doesn't produce a log file.

    If not, you might be able to store the output to a logfile on your own
    by specifying something like the following as the shell command:

    c:\mystic\doors\apoc\maint.exe > c:\mystic\logs\maint.log 2>&1

    Tried the above but no log file is produced. I can run the maint.exe manually but thats kind of a pain. Just weird that it's not running the file. It's just a basic shell command. Dosen't make much sense.

    --- Mystic BBS v1.12 A47 2021/04/08 (Windows/32)
    * Origin: Lunatics Unleashed BBS (21:3/135)
  • From Zip@21:1/202 to Cozmo on Thu Dec 16 15:02:26 2021
    Hello Cozmo!

    On 16 Dec 2021, Cozmo said the following...
    c:\mystic\doors\apoc\maint.exe > c:\mystic\logs\maint.log 2>&1

    Tried the above but no log file is produced. I can run the maint.exe manually but thats kind of a pain. Just weird that it's not running the file. It's just a basic shell command. Dosen't make much sense.

    Strange!

    (If you create a batch file, does this affect anything?)

    Best regards
    Zip

    --- Mystic BBS v1.12 A47 2021/12/13 (Linux/64)
    * Origin: Star Collision BBS, Uppsala, Sweden (21:1/202)
  • From Cozmo@21:3/135 to Zip on Fri Dec 17 18:04:16 2021
    (If you create a batch file, does this affect anything?)

    I ran a batch file with the info you gave and got this:
    "NTVDM has encountered a System Error - The Handle is invalid"

    --- Mystic BBS v1.12 A47 2021/04/08 (Windows/32)
    * Origin: Lunatics Unleashed BBS (21:3/135)
  • From Zip@21:1/202 to Cozmo on Sat Dec 18 00:12:29 2021
    Hello Cozmo!

    On 17 Dec 2021, Cozmo said the following...
    I ran a batch file with the info you gave and got this:
    "NTVDM has encountered a System Error - The Handle is invalid"

    I found this:

    https://www.wintips.org/how-to-fix-ntvdm-encountered-a-system-error-when-runnin g-16bit-apps-windows-10-solved/

    Although I'm not running Mystic on Windows myself, so I'm not sure if this will work...

    Best regards
    Zip

    --- Mystic BBS v1.12 A47 2021/12/13 (Linux/64)
    * Origin: Star Collision BBS, Uppsala, Sweden (21:1/202)
  • From Cozmo@21:3/135 to Zip on Sat Dec 18 16:04:10 2021
    https://www.wintips.org/how-to-fix-ntvdm-encountered-a-system-error-when-r g-16bit-apps-windows-10-solved/

    I did try the above but no luck. I haven't had any problem running 16 bit apps on Windows 7

    The Event runs at the specified time but Mystic will not run the file in the Event be it the .exe or .bat file. Like I said if I run the .exe or .bat file
    from a DOS prompt it runs fine.

    --- Mystic BBS v1.12 A47 2021/04/08 (Windows/32)
    * Origin: Lunatics Unleashed BBS (21:3/135)