This took a bit of digging, so I thought I'd share what I've found.
I remember coming across a thread where someone used tee to allow them to edit their script without requiring a server restart, but was unable to find it again.
I start the server in a screen session as normal, and then I run my parser script in a separate session like:
Code: Select all
tail -f -n0 /etc/arma/servers/servername/var/ladderlog.txt | php /etc/arma/servers/servername/settings/scriptname.php
Code: Select all
function sendcmd($cmd){
global $servername;
`screen -S $servername -X stuff "$(printf '%s' "$cmd\015")"`;
}
Now you can edit your script at will, and just restart the tail session. Saves a lot of hassle restarting server and reconnecting.