Born too late to experience the scene.
Born just in time to see it come back.
Nodoka Hanamura - NeoCincinnati BBS SYSOP - neocinci.bbs.io
I'm running Magicka but here's a look at my fhnr_l21.sh that runs For Honour in the league 21 game here..
#!/bin/bash
NODE=$1
cd /home/alan/MagickaBBS/doors/fhnr_fsx
./ForHonour -D /home/alan/MagickaBBS/node${NODE}/door.sys
./ForHonour maintenance
The only magic bit there is the ${NODE} bit. When the door is run from
the BBS the node number we are running on is the first command line parameter. I put that node number in an environment variable with the NODE=$1 above, then use that parameter to get the right directory to look in with ${NODE}.
Nodoka Hanamura wrote to Al <=-
On 03 Jan 2020, Al said the following...
I'm running Magicka but here's a look at my fhnr_l21.sh that runs For Honour in the league 21 game here..
#!/bin/bash
NODE=$1
Question is, will Mystic detect that {NODE] EVAR and run properly? I
want to make sure all my ducks are in a row before I start doing things
in a bash script.
When you create the menu entry command in mystic, make sure you set it like this:
Command (DD) Exec external program
Data ./fhnr_l21.sh %3
See: http://wiki.mysticbbs.com/doku.php?id=menu_commands#external_doors
The %3 becomes the node number, which mystic passes onto the script
which becomes $1.
Sysop: | Eric Oulashin |
---|---|
Location: | Beaverton, Oregon, USA |
Users: | 127 |
Nodes: | 16 (0 / 16) |
Uptime: | 06:08:03 |
Calls: | 1,529 |
Files: | 2,153 |
Messages: | 314,123 |