Hmm... well... it does actually return non zero exit code... It was my script that reported the $? wrongly. It always printed the exitcode and it was always 0.
Well rewrote the whole script and it seems to work as I would like it to. Sorry, for the noise. /Bjorn On Tue, 5 Aug 2008, Kevin Ottalini wrote: > It's odd, on some of my machines it works on others it doesn't. > > Thankfully it does work on my main Win2003 server. > > > > ----- Original Message ----- > From: "Nephyrin Zey" > To: "Half-Life dedicated Linux server mailing list" > <[email protected]> > Sent: Tuesday, August 05, 2008 3:32 PM > Subject: Re: [hlds_linux] hldsupdatetool beta > > > > There already is some kind of exit code behavior. I know it returns > > non-zero when an update is released: > > > > $ ./steam > > Checking bootstrapper version ... > > Getting version 32 of Steam HLDS Update Tool > > Downloading. . . . . . . . . . . .Steam Linux Client updated, please > > retry the command > > $ echo $? > > 1 > > > > And when it fails to update a directory: > > > > $ ./steam -dir bob -command update -game tf > > Checking bootstrapper version ... > > Updating Installation > > Cannot open output file 'bob/InstallRecord.blob' > > $ echo $? > > 1 > > > > And also when it was getting that Connection Reset error, it was > > returning non-zero. > > > > - Neph > > > > Marcel wrote: > >> kama schrieb: > >> > >>> Like: > >>> 0 = exited normally > >>> 1 = new steam binary have been downloaded please rerun steam. > >>> 2 = connection lost to content server > >>> 255 = an error occured > >>> > >> > >> That would be really cool - especially idea for exit code 1. > >> > >> - Marcel > > > _______________________________________________ > 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

