Ok,
Under Windows/DOS, I would have written a batch file to run each of my doors. If I was ambitious, I would have written one batch file to run all of the
doors via command line arguments...
Under Linux, I would like to do the same thing with BASH scripting. I have, what I believe, to be a working script, but for some reason, when the door
runs it seems to freeze between screens. I would have to hit enter about
20-30 times, before the next screen would appear...
This is what I have right now...
Within Mystic:
Command (D3) Exec DOOR32 program
Data ./doors.sh -d gdyn -p %Pdoor32.sys -n %3 -s %0
#!/bin/bash
#doors.sh
while getopts d:p:n:s: option
do
case "${option}"
in
d) DOOR=${OPTARG};;
p) PATH=${OPTARG};;
n) NODE=${OPTARG};;
s) SOCKET=${OPTARG};;
esac
done
if [ "$DOOR" == "legion" ];
then
cd /home/dan/doors/Legion/
./legion -D "$PATH" -N "$NODE" -SOCKET "$SOCKET"
fi
if [ "$DOOR" == "gdyn" ];
then
cd /home/dan/doors/gdyn/
./GalacticDynasty -D "$PATH" -N "$NODE" -SOCKET "$SOCKET"
fi
---
Black Panther
aka Dan Richter
Sysop - Castle Rock BBS
telnet://castlerockbbs.com
The sparrows are flying again...
--- Mystic BBS v1.12 A34 (Linux/64)
* Origin: Castle Rock BBS - castlerockbbs.com (21:1/186)