Hey Skil, since we're talking bout the script here, maybe you can follow this.....
So you have the wait_loaded line like so:
SECONDS_TO_WAIT=120
PASS_RESPONSE="playerpassword\\n" # Basic nwserver
PASS_PHRASE="0x08203e79" # NWNX2 init if you use nwnstartup.sh
WAIT_LOADED="empty -w -t $SECONDS_TO_WAIT -i out.fifo -o in.fifo $PASS_PHRASE $PASS_RESPONSE"
So it waits for the nwnx init phrase, but I was expecting the -t to delay the command by that number of seconds, but according to the man page it simply is the amount of time to wait for an appropriate response. Have a better idea on how to automate the removal of the password after more than a basic delay?
I've been mulling over something like the man page suggests....
A better way to send the password to the supervised program is to read
it from file:
empty -s [common options] <./password-file