You don't need the exit code.

 1) screen -A -dmS update /bin/bash
 2) screen -r ...
 3) ./steam -command update -game cstrike ...
 4) Ctrl + A, then D
 ...
 5) screen -r ...

----- Original Message -----
From: Rikard Bremark
Sent: 07/30/11 10:25 PM
To: Half-Life dedicated Linux server mailing list
Subject: [hlds_linux] errorlevels for hldsupdatetool

 does anyone now if hldsupdatetool exits with some sort of errorlevel? running 
debian and having a bit of a problem. iwe got a update script that looks like 
this #!/bin/sh cd /home/hlds/uphlds/ screen -AmdS update ./steam -command 
update -game cstrike -dir /home/hlds/servers/wc3ft -verify_all -retry -beta 
hlbeta screen -r update (just so i can watch over the update or if i loose 
connection to the server with putty) but when the update is done the steam 
software is terminated (when i think of it now, every time the steam software 
exits the update went well right?) the screen session terminates as well. I 
have tried different solutions but nothing has workt to keep the screen session 
alive. Either way, i want the screen session not to be terminated, and frankly 
i would want (not requesting) a script that does updates for all my servers on 
the specific machine but with that i think i need errorlevels to see if the 
update was successful or not, am i right? At least i need to restart the update 
for the specific server if someone or they all fails (easiest with one update 
script for each server running parallel?) I'm a complete beginner in this sort 
of things, at least on unix/linux systems. ------ //Rikard 'Zapy' Bremark 
ComHem AB - http://www.comhem.se Warzone.nu - http://www.warzone.nu Warzone 
Short Valley [email protected] [email protected] 
_______________________________________________ To unsubscribe, edit your list 
preferences, or view the list archives, please visit: 
http://list.valvesoftware.com/mailman/listinfo/hlds_linux
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux

Reply via email to