The question is, if steamcmd knows parent directory. Does it? Maybe for protability the've included os independend code. But I've never tested it. I don't like suprises, so I'm using everytime absolute paths and watch for directories with upper case letters,
I've written my own updatechecktool and have to overrive some errors like the appid for csgo in the steam.inf. The appid is 730 = client. For downloading the server, I have to use appid 740. But versioncheck over the steamapi doesn't work with appid 740... As we konow the updater have tons of errors, steamcmd ist logging to a logfile, if I want to redirect stderr to /dev/null and strange behavior with exit codes. I think two weeks ago I've tried to find out all exit codes of steamcmd. Forget it. Not usable. Some time ago valve has updated this nice tool. So the've added a shellscript called steamcmd.sh, wao, not longer have to set STEAMEXE :-D They have to reed Jesse Molinas post and do this, what he have written to them. This tool is hated by the whole german community. I don't know how other communities think about this tool, but when they do I think they also to like pain. 2013/2/20 Ross Bemrose <[email protected]>: > On a side note, while its OK to use ~ on a command-line with steamcmd, don't > use it within the actual program, as steamcmd itself doesn't expand it. > This includes not using it in a script you run using the +runscript option. > > Speaking of which, I'm surprised you guys aren't just using it via a > runscript instead of passing a whole bunch of command line options. > runscript is documented on the wiki. > > > On 2/20/2013 4:53 PM, Andre Müller wrote: >> >> I don't exactly know if steamcmd accepcts parent directory '..' >> Maybe it's better to use an absolute path or use expanduser/dir like >> >> ./steamcmd.sh +login anonymous +force_install_dir ~/hlserver >> +app_update 90 validate +exit >> The shell expands the home-directory to an absolute path. >> >> In shellscript this can help, if you executing your shellscript from a >> directory outside your server: >> >> ./steamcmd.sh +login anonymous +force_install_dir `cd ../hlserver; >> pwd` +app_update 90 validate +exit >> >> In this case the command `cd ../hlserver; pwd` execute a subshell and >> pwd prints the current directory as an absolute path. The shell will >> execute first the substitute command and replace the command with the >> output. So, a litte background.... >> >> >> But try first the absulute path and post the output. >> >> 2013/2/20 edman747 <[email protected]>: >>> >>> here is what I use on Linux >>> directory layout >>> install (hldsupdatetool is here) >>> hlserver (game server) >>> steampipe (steamcmd.sh) >>> >>> if I want to use hldsupdatetool to install the original half-life maps >>> cd install >>> ./steam -command update -game valve -dir ../hlserver/ -verify_all >>> or the original opposing force maps. >>> ./steam -command update -game gearbox -dir ../hlserver/ -verify_all >>> >>> to update the server to steam pipe >>> cd ../steampipe >>> >>> (run once) >>> ./steamcmd.sh >>> exit >>> >>> ./steamcmd.sh +login anonymous +force_install_dir ../hlserver >>> +app_update 90 validate +exit >>> >>> >>> >>> On Wed, Feb 20, 2013 at 2:53 PM, Andre Müller <[email protected]> >>> wrote: >>>> >>>> Maybe +logout +quit is better, but valve don't tell us about thier >>>> nice updatetool. >>>> >>>> 2013/2/20 Doctor McKay <[email protected]>: >>>>> >>>>> I assume you're using command-line options. If so, just stick +quit at >>>>> the >>>>> end. >>>>> >>>>> Dr. McKay >>>>> >>>>> On Wednesday, February 20, 2013, c0m4r wrote: >>>>> >>>>>> Make sure that SteamCMD is running on the account with the correct >>>>>> permissions. >>>>>> >>>>>> In addition, all of the files that SteamCMD uses, both the upgrade >>>>>> tools, >>>>>> server files and ~/Steam and ~/steam must have the correct user >>>>>> permissions. >>>>>> >>>>>> Don't use chattr on any of the server files. In bash script use >>>>>> correct >>>>>> PATH var. >>>>>> >>>>>> #!/bin/bash >>>>>> >>>>>> PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/etc >>>>>> >>>>>> - c0m4r >>>>>> >>>>>> Dnia 20 Lutego 2013, 3:25 pm, Śr, Marcel napisał(a): >>>>>>> >>>>>>> Hi, >>>>>>> >>>>>>> I noticed that when trying to update a server the steamcmd tool just >>>>>>> quits but the download of the server is still running in the >>>>>>> background >>>>>>> (as a thread?!). (checked with garrysmod) >>>>>>> >>>>>>> This makes it nearly impossible to use in bash scripts. Am I making >>>>>>> somewthing, or is this tool still just a pain in the ass? >>>>>>> >>>>>>> >>>>>>> >>>>>>> - Marcel >>>>>>> >>>>>>> _______________________________________________ >>>>>>> To unsubscribe, edit your list preferences, or view the list >>>>>>> archives, >>>>>>> please visit: >>>>>>> https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds_linux >>>>>>> >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> To unsubscribe, edit your list preferences, or view the list archives, >>>>>> please visit: >>>>>> https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds_linux >>>>>> >>>>> >>>>> -- >>>>> Sent from Gmail Mobile >>>>> _______________________________________________ >>>>> To unsubscribe, edit your list preferences, or view the list archives, >>>>> please visit: >>>>> https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds_linux >>>> >>>> _______________________________________________ >>>> To unsubscribe, edit your list preferences, or view the list archives, >>>> please visit: >>>> https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds_linux >>> >>> _______________________________________________ >>> To unsubscribe, edit your list preferences, or view the list archives, >>> please visit: >>> https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds_linux >> >> _______________________________________________ >> To unsubscribe, edit your list preferences, or view the list archives, >> please visit: >> https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds_linux > > > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds_linux _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds_linux

