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: | sneaky |
---|---|
Location: | Ashburton,NZ |
Users: | 3 |
Nodes: | 8 (0 / 8) |
Uptime: | 49:37:44 |
Calls: | 2,140 |
Calls today: | 5 |
Files: | 11,149 |
D/L today: |
10 files (9,977K bytes) |
Messages: | 951,163 |