HLTV crontab script
I am attempting to start an HLTV server with a script so I can execute it through crontab should I happen to reboot the machine.
Normally, if I try to start HLTV, I have to launch screen, and then execute the command Code:
export LD_LIBRARY_PATH=".:LD_LIBRARY_PATH" I am trying to do that in a bash script. If my script reads like this, it launches a screen instance, but of course fails to launch the HLTV server because of the known errors without exporting that library. Code:
#!/bin/bash Code:
#!/bin/bash Any ideas how to use a script to launch an HLTV? |
Re: HLTV crontab script
In your older thread, alexinno's suggestion looks alright: start the screen, and then send commands to it with -X.
|
Re: HLTV crontab script
maybe
#!/bin/bash export LD_LIBRARY_PATH=/"whever your hlds is located"/hlds_l:$LD_LIBRARY_PATH screen -X -S aim quit sleep 4 cd /home/gamer/hltv/cstrike/aim /usr/bin/screen -dmS aim ./hltv +exec hltv_aim.cfg -port 27021 |
Re: HLTV crontab script
Quote:
|
Re: HLTV crontab script
Quote:
|
Re: HLTV crontab script
Quote:
|
Re: HLTV crontab script
Quote:
|
Re: HLTV crontab script
Quote:
|
Re: HLTV crontab script
Quote:
|
Re: HLTV crontab script
No, you should add it to the script that you start HLTV with: ./hltv
|
All times are GMT -4. The time now is 11:00. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.