• Customer IBBS game events

    From alterego@VERT/ALTERANT to All on Wednesday, March 18, 2020 13:26:05
    How do folks handle incoming game packets for doors?

    Not knowing what to do, I thought I'd set up a script that runs every hour processing received game packets - but I couldnt get it to fire.

    On Windows, I have an event, which results in this in the error log:

    3/18 01:10:10p ERROR 2 (No such file or directory) (WinError 2) in xtrn.cpp line 625 (sbbs_t::external) executing "C:\Windows\system32\cmd.exe /C C:\CONTROL\DGD.BAT 21" access=257
    3/18 01:10:10p Timed event: IBBS returned 2

    The event is configured:
    Internal Code IBBS
    Start-up Directory
    Command Line C:\CONTROL\DGD.BAT 21
    Enabled Yes
    Execution Node Any
    Execution Months Any
    Execution Days of Month Any
    Execution Days of Week All
    Execution Time 00:00
    Requires Exclusive Execution No
    Force Users Off-line For Event No
    Native Executable No
    Use Shell to Execute Yes
    Background Execution No
    Always Run After Init/Re-init No

    If I run that command on the command line it works. What does access=257 mean?

    Is there a way to fire events based on the filename received (preferably as a glob, eg *.GAL)?
    ...deon


    ... When your work speaks for itself, don`t interrupt.

    ---
    þ Synchronet þ Alterant | an SBBS in Docker on Pi!
  • From Digital Man@VERT to alterego on Tuesday, March 17, 2020 19:42:42
    Re: Customer IBBS game events
    By: alterego to All on Wed Mar 18 2020 01:26 pm

    How do folks handle incoming game packets for doors?

    Not knowing what to do, I thought I'd set up a script that runs every hour processing received game packets - but I couldnt get it to fire.

    On Windows, I have an event, which results in this in the error log:

    3/18 01:10:10p ERROR 2 (No such file or directory) (WinError 2) in xtrn.cpp line 625 (sbbs_t::external) executing "C:\Windows\system32\cmd.exe /C C:\CONTROL\DGD.BAT 21" access=257
    3/18 01:10:10p Timed event: IBBS returned 2

    The event is configured:
    Internal Code IBBS
    Start-up Directory
    Command Line C:\CONTROL\DGD.BAT 21
    Enabled Yes
    Execution Node Any
    Execution Months Any
    Execution Days of Month Any
    Execution Days of Week All
    Execution Time 00:00
    Requires Exclusive Execution No
    Force Users Off-line For Event No
    Native Executable No
    Use Shell to Execute Yes
    Background Execution No
    Always Run After Init/Re-init No

    If I run that command on the command line it works. What does access=257 mean?

    In this context, it refers to the EX_ mode flags used in the call to sbbs_t::external():

    Specifically, these mode flags:

    #define EX_SH (1<<0) /* Use command shell to load other process */
    #define EX_OFFLINE (1<<8) /* Run this program offline */

    The meaningful error there is: 2 (file not found)

    Is there a way to fire events based on the filename received (preferably as a glob, eg *.GAL)?

    No, but wouldn't be too hard to have a periodic timed event that did stuff (e.g. run another program) based on a file's existence.

    digital man

    This Is Spinal Tap quote #18:
    Sustain, listen to it. Don't hear anything. You would though were it playing. Norco, CA WX: 50.3øF, 67.0% humidity, 5 mph ESE wind, 0.32 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From alterego@VERT/ALTERANT to Digital Man on Wednesday, March 18, 2020 14:31:24
    Re: Customer IBBS game events
    By: Digital Man to alterego on Tue Mar 17 2020 07:42 pm

    "C:\Windows\system32\cmd.exe /C C:\CONTROL\DGD.BAT 21" access=257
    The meaningful error there is: 2 (file not found)

    Well, I thought it might have been that - but if I cut and paste between the quotes and use it in the command line it works?

    Is it possible the whole things is pasted to the system to run, instead of a call to cmd.exe with 3 arguments?
    ...deon


    ... I do not often attack the labour party. They do it so well themselves.

    ---
    þ Synchronet þ Alterant | an SBBS in Docker on Pi!
  • From Digital Man@VERT to alterego on Tuesday, March 17, 2020 21:20:47
    Re: Customer IBBS game events
    By: alterego to Digital Man on Wed Mar 18 2020 02:31 pm

    Re: Customer IBBS game events
    By: Digital Man to alterego on Tue Mar 17 2020 07:42 pm

    "C:\Windows\system32\cmd.exe /C C:\CONTROL\DGD.BAT 21" access=257
    The meaningful error there is: 2 (file not found)

    Well, I thought it might have been that - but if I cut and paste between the quotes and use it in the command line it works?

    Is it possible the whole things is pasted to the system to run, instead of a call to cmd.exe with 3 arguments?

    I'm not sure what the issue is immediately. Did you try setting the startup directory to "C:\CONTROL" and the command to just "DGD.BAT 21"?

    digital man

    Synchronet/BBS Terminology Definition #2:
    ARS = Access Requirement Strings
    Norco, CA WX: 48.9øF, 69.0% humidity, 0 mph SE wind, 0.29 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From alterego@VERT/ALTERANT to Digital Man on Wednesday, March 18, 2020 15:37:52
    Re: Customer IBBS game events
    By: Digital Man to alterego on Tue Mar 17 2020 09:20 pm

    I'm not sure what the issue is immediately. Did you try setting the startup directory to "C:\CONTROL" and the command to just "DGD.BAT 21"?

    Just tried, no cigar :(

    Internal Code IBBS
    Start-up Directory C:\CONTROL
    Command Line DGD.BAT 21
    Enabled Yes
    Execution Node Any
    Execution Months Any
    Execution Days of Month Any
    Execution Days of Week All
    Execution Time 00:00
    Requires Exclusive Execution No
    Force Users Off-line For Event No
    Native Executable No
    Use Shell to Execute Yes
    Background Execution No


    3/18 03:34:58p ERROR 2 (No such file or directory) (WinError 2) in xtrn.cpp line 625 (sbbs_t::external) executing "C:\Windows\system32\cmd.exe /C C:\CONTROL\DGD.BAT 21" access=257
    3/18 03:34:58p Timed event: IBBS returned 2
    ...deon


    ... There is an order of things in this universe. Apollo, stardate 3468.1.

    ---
    þ Synchronet þ Alterant | an SBBS in Docker on Pi!
  • From Digital Man@VERT to alterego on Tuesday, March 17, 2020 22:40:16
    Re: Customer IBBS game events
    By: alterego to Digital Man on Wed Mar 18 2020 03:37 pm

    Re: Customer IBBS game events
    By: Digital Man to alterego on Tue Mar 17 2020 09:20 pm

    I'm not sure what the issue is immediately. Did you try setting the startup directory to "C:\CONTROL" and the command to just "DGD.BAT 21"?

    Just tried, no cigar :(

    Internal Code IBBS
    Start-up Directory C:\CONTROL
    Command Line DGD.BAT 21
    Enabled Yes
    Execution Node Any
    Execution Months Any
    Execution Days of Month Any
    Execution Days of Week All
    Execution Time 00:00
    Requires Exclusive Execution No
    Force Users Off-line For Event No
    Native Executable No
    Use Shell to Execute Yes
    Background Execution No


    3/18 03:34:58p ERROR 2 (No such file or directory) (WinError 2) in xtrn.cpp line 625 (sbbs_t::external) executing "C:\Windows\system32\cmd.exe /C C:\CONTROL\DGD.BAT 21" access=257
    3/18 03:34:58p Timed event: IBBS returned 2

    Try enabling Native Executable. It shouldn't make any difference, but you could try renaming the .bat to a .cmd file and change the command-line accordingly.

    digital man

    Synchronet "Real Fact" #53:
    Synchronet Blackjack was the first multi-node/multi-user game for Synchronet. Norco, CA WX: 47.9øF, 73.0% humidity, 0 mph SE wind, 0.13 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From alterego@VERT/ALTERANT to Digital Man on Wednesday, March 18, 2020 17:23:29
    Re: Customer IBBS game events
    By: Digital Man to alterego on Tue Mar 17 2020 10:40 pm

    Try enabling Native Executable. It shouldn't make any difference, but you

    Umm... That worked :)

    So I created another one and went back to "\full\path\to.bat arg", with just native executable selected, (and use shell set to no) and it ran.
    ...deon


    ... Death is hereditary

    ---
    þ Synchronet þ Alterant | an SBBS in Docker on Pi!
  • From Digital Man@VERT to alterego on Wednesday, March 18, 2020 00:14:31
    Re: Customer IBBS game events
    By: alterego to Digital Man on Wed Mar 18 2020 05:23 pm

    Re: Customer IBBS game events
    By: Digital Man to alterego on Tue Mar 17 2020 10:40 pm

    Try enabling Native Executable. It shouldn't make any difference, but you

    Umm... That worked :)

    So I created another one and went back to "\full\path\to.bat arg", with just native executable selected, (and use shell set to no) and it ran.

    Okay, so that makes sense: cmd.exe is a native program.

    digital man

    This Is Spinal Tap quote #9:
    David St. Hubbins: I mean, it's not your job to be as confused as Nigel.
    Norco, CA WX: 46.3øF, 79.0% humidity, 0 mph S wind, 0.02 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rampage@VERT/SESTAR to alterego on Wednesday, March 18, 2020 08:12:13
    Re: Customer IBBS game events
    By: alterego to Digital Man on Wed Mar 18 2020 15:37:52


    alterego> 3/18 03:34:58p ERROR 2 (No such file or directory) (WinError
    alterego> 2) in xtrn.cpp line 625 (sbbs_t::external) executing
    alterego> "C:\Windows\system32\cmd.exe /C C:\CONTROL\DGD.BAT 21" access=257
    alterego> 3/18 03:34:58p Timed event: IBBS returned 2

    are the permissions correct so the BBS user has access to that bat file?

    are bat files "native executable" on winwhatever?


    )\/(ark

    ---
    þ Synchronet þ The SouthEast Star Mail HUB - SESTAR