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)?
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=257The 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"?
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
"C:\Windows\system32\cmd.exe /C C:\CONTROL\DGD.BAT 21" access=257The meaningful error there is: 2 (file not found)
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.
Sysop: | sneaky |
---|---|
Location: | Ashburton,NZ |
Users: | 28 |
Nodes: | 8 (0 / 8) |
Uptime: | 190:48:54 |
Calls: | 2,006 |
Calls today: | 3 |
Files: | 11,114 |
Messages: | 942,286 |