Re: [hlds_linux] wrench: a Linux command-line srcds control manager
If anyone out there is using my script, you will want to grab the new version. I discovered an ugly bug that was causing the wrong servers to be shut down during an update. Basically, it was shutting down ALL servers, instead of just servers belonging to a particular game type. Then, it wasn't restarting them after the update. Other bug fixes and improvements too. On 3/19/14, 23:43, Jesse Molina wrote: Below is a srcds manager script that I've been using for awhile now to take care of my srcds installations. I figure someone else might find it useful. It is a bash script. Linux only, no Windows. wrench script http://pastebin.com/CS81FnF9 md5sum: 80a423123f6c3f638004e9ae68e5eb23 wrench.sh Readme file http://pastebin.com/mHWJm62R Sample DB http://pastebin.com/eMKUsADN Download like so: wget http://pastebin.com/download.php?i=CS81FnF9 -O wrench.sh wget http://pastebin.com/download.php?i=mHWJm62R -O wrench_README.txt Notable features: Does starts, stops, restarts, updates, etc. Symlinked installs and a single master installation for each game type. Automatic updates for all installed srcds server types. Uses tmux instead of screen. Keeps config info in a little SQLite database. (no complicated SQL server install needed) It's convoluted, but it works for me. ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds_linux
Re: [hlds_linux] wrench: a Linux command-line srcds control manager
What this guy said. Use the wget command I listed, or use the "download" link that pastebin gives you. I have already made a bunch of changes and improvements. I will go get on publishing it somewhere so that people can get the newest version. I've been busy this last couple of weeks. Sorry about that. On 4/1/14, 14:34, Dirk D wrote: The here document at line 872 is not correctly closed in your copy of the script. This is most likely the case because you copied the script from the formatted text box with syntax highlighting on pastebin instead of downloading it via the download/raw link at the top of the page or copying it from the raw text box (below the formatted one). The problem is that pastebin expands tabs to spaces in the formatted box and the here document is opened in tab stripping mode. So when you copy it from there there are no tabs to strip at the beginnings of lines and the heredoc delimiter "ENDMESSAGE" is never found because a bunch of spaces + "ENDMESSAGE" does not equal "ENDMESSAGE" thus leading to the heredoc spanning beyond the end of the its designated end position and even beyond the end of the script file. Just download it via the aforementioned download link at the top of the pastebin and the script should work as intended. On Tue, Apr 1, 2014 at 3:19 PM, monte wrote: Hey, as for your latest version from pastebin, there seems to be some kind of syntax error (probably)? running bash4.3.0 gameslut@f2fea31d:~/wrench$ ./wrench.sh ./wrench.sh: line 2922: warning: here-document at line 872 delimited by end-of-file (wanted `ENDMESSAGE') ./wrench.sh: line 2923: syntax error: unexpected end of file 2922 being the last line, 2923 ain't exists.. mind to gave it a shot to figure out, why is the error showing up? On Thu, 20 Mar 2014 22:17:01 -0700, Jesse Molina wrote: There was a one-line error in this script that I made before uploading it which prevented new installations from being configured correctly. This has been fixed. New MD5 is 8289df67fc3b4fa1d5f6d6c2a862a41c, same download location. On 3/19/14, 23:43, Jesse Molina wrote: Below is a srcds manager script that I've been using for awhile now to take care of my srcds installations. I figure someone else might find it useful. It is a bash script. Linux only, no Windows. wrench script http://pastebin.com/CS81FnF9 md5sum: 80a423123f6c3f638004e9ae68e5eb23 wrench.sh Readme file http://pastebin.com/mHWJm62R Sample DB http://pastebin.com/eMKUsADN Download like so: wget http://pastebin.com/download.php?i=CS81FnF9 -O wrench.sh wget http://pastebin.com/download.php?i=mHWJm62R -O wrench_README.txt Notable features: Does starts, stops, restarts, updates, etc. Symlinked installs and a single master installation for each game type. Automatic updates for all installed srcds server types. Uses tmux instead of screen. Keeps config info in a little SQLite database. (no complicated SQL server install needed) It's convoluted, but it works for me. ___ 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
Re: [hlds_linux] wrench: a Linux command-line srcds control manager
The here document at line 872 is not correctly closed in your copy of the script. This is most likely the case because you copied the script from the formatted text box with syntax highlighting on pastebin instead of downloading it via the download/raw link at the top of the page or copying it from the raw text box (below the formatted one). The problem is that pastebin expands tabs to spaces in the formatted box and the here document is opened in tab stripping mode. So when you copy it from there there are no tabs to strip at the beginnings of lines and the heredoc delimiter "ENDMESSAGE" is never found because a bunch of spaces + "ENDMESSAGE" does not equal "ENDMESSAGE" thus leading to the heredoc spanning beyond the end of the its designated end position and even beyond the end of the script file. Just download it via the aforementioned download link at the top of the pastebin and the script should work as intended. On Tue, Apr 1, 2014 at 3:19 PM, monte wrote: > Hey, > as for your latest version from pastebin, there seems to be some kind of > syntax error (probably)? running bash4.3.0 > > gameslut@f2fea31d:~/wrench$ ./wrench.sh > ./wrench.sh: line 2922: warning: here-document at line 872 delimited by > end-of-file (wanted `ENDMESSAGE') > ./wrench.sh: line 2923: syntax error: unexpected end of file > > 2922 being the last line, 2923 ain't exists.. mind to gave it a shot to > figure out, why is the error showing up? > > > > On Thu, 20 Mar 2014 22:17:01 -0700, Jesse Molina wrote: >> >> There was a one-line error in this script that I made before >> uploading it which prevented new installations from being configured >> correctly. This has been fixed. New MD5 is >> 8289df67fc3b4fa1d5f6d6c2a862a41c, same download location. >> >> >> On 3/19/14, 23:43, Jesse Molina wrote: >>> >>> >>> Below is a srcds manager script that I've been using for awhile now to >>> take care of my srcds installations. I figure someone else might find it >>> useful. >>> >>> It is a bash script. Linux only, no Windows. >>> >>> wrench script >>> http://pastebin.com/CS81FnF9 >>> >>> md5sum: >>> 80a423123f6c3f638004e9ae68e5eb23 wrench.sh >>> >>> Readme file >>> http://pastebin.com/mHWJm62R >>> >>> Sample DB >>> http://pastebin.com/eMKUsADN >>> >>> Download like so: >>> >>> wget http://pastebin.com/download.php?i=CS81FnF9 -O wrench.sh >>> wget http://pastebin.com/download.php?i=mHWJm62R -O wrench_README.txt >>> >>> >>> Notable features: >>> >>> Does starts, stops, restarts, updates, etc. >>> >>> Symlinked installs and a single master installation for each game type. >>> >>> Automatic updates for all installed srcds server types. >>> >>> Uses tmux instead of screen. >>> >>> Keeps config info in a little SQLite database. (no complicated SQL server >>> install needed) >>> >>> >>> >>> It's convoluted, but it works for me. >>> >>> >>> ___ >>> 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
Re: [hlds_linux] wrench: a Linux command-line srcds control manager
Hey, as for your latest version from pastebin, there seems to be some kind of syntax error (probably)? running bash4.3.0 gameslut@f2fea31d:~/wrench$ ./wrench.sh ./wrench.sh: line 2922: warning: here-document at line 872 delimited by end-of-file (wanted `ENDMESSAGE') ./wrench.sh: line 2923: syntax error: unexpected end of file 2922 being the last line, 2923 ain't exists.. mind to gave it a shot to figure out, why is the error showing up? On Thu, 20 Mar 2014 22:17:01 -0700, Jesse Molina wrote: There was a one-line error in this script that I made before uploading it which prevented new installations from being configured correctly. This has been fixed. New MD5 is 8289df67fc3b4fa1d5f6d6c2a862a41c, same download location. On 3/19/14, 23:43, Jesse Molina wrote: Below is a srcds manager script that I've been using for awhile now to take care of my srcds installations. I figure someone else might find it useful. It is a bash script. Linux only, no Windows. wrench script http://pastebin.com/CS81FnF9 md5sum: 80a423123f6c3f638004e9ae68e5eb23 wrench.sh Readme file http://pastebin.com/mHWJm62R Sample DB http://pastebin.com/eMKUsADN Download like so: wget http://pastebin.com/download.php?i=CS81FnF9 -O wrench.sh wget http://pastebin.com/download.php?i=mHWJm62R -O wrench_README.txt Notable features: Does starts, stops, restarts, updates, etc. Symlinked installs and a single master installation for each game type. Automatic updates for all installed srcds server types. Uses tmux instead of screen. Keeps config info in a little SQLite database. (no complicated SQL server install needed) It's convoluted, but it works for me. ___ 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
Re: [hlds_linux] wrench: a Linux command-line srcds control manager
There was a one-line error in this script that I made before uploading it which prevented new installations from being configured correctly. This has been fixed. New MD5 is 8289df67fc3b4fa1d5f6d6c2a862a41c, same download location. On 3/19/14, 23:43, Jesse Molina wrote: Below is a srcds manager script that I've been using for awhile now to take care of my srcds installations. I figure someone else might find it useful. It is a bash script. Linux only, no Windows. wrench script http://pastebin.com/CS81FnF9 md5sum: 80a423123f6c3f638004e9ae68e5eb23 wrench.sh Readme file http://pastebin.com/mHWJm62R Sample DB http://pastebin.com/eMKUsADN Download like so: wget http://pastebin.com/download.php?i=CS81FnF9 -O wrench.sh wget http://pastebin.com/download.php?i=mHWJm62R -O wrench_README.txt Notable features: Does starts, stops, restarts, updates, etc. Symlinked installs and a single master installation for each game type. Automatic updates for all installed srcds server types. Uses tmux instead of screen. Keeps config info in a little SQLite database. (no complicated SQL server install needed) It's convoluted, but it works for me. ___ 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
Re: [hlds_linux] wrench: a Linux command-line srcds control manager
Looks like a lot of effort went into this, nice work. Although i would suggest putting it up on github/bitbucket or something to let others see progress make updates too if they added value. 2014-03-20 7:43 GMT+01:00 Jesse Molina : > > Below is a srcds manager script that I've been using for awhile now to > take care of my srcds installations. I figure someone else might find it > useful. > > It is a bash script. Linux only, no Windows. > > wrench script > http://pastebin.com/CS81FnF9 > > md5sum: > 80a423123f6c3f638004e9ae68e5eb23 wrench.sh > > Readme file > http://pastebin.com/mHWJm62R > > Sample DB > http://pastebin.com/eMKUsADN > > Download like so: > > wget http://pastebin.com/download.php?i=CS81FnF9 -O wrench.sh > wget http://pastebin.com/download.php?i=mHWJm62R -O wrench_README.txt > > > Notable features: > > Does starts, stops, restarts, updates, etc. > > Symlinked installs and a single master installation for each game type. > > Automatic updates for all installed srcds server types. > > Uses tmux instead of screen. > > Keeps config info in a little SQLite database. (no complicated SQL server > install needed) > > > > It's convoluted, but it works for me. > > > ___ > 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