ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
i have a few HL servers and i have to login and start them up manuely not really a problem, but when I'm not here and som1 needs to restart the server they don't get how-to get the HL servers back on-line.
its not a very Fancy script.
Code:
#!/bin/bash
alias w10 "wait; wait; wait; "
echo "running hlds start stript"
cd hlds
./hlds_run commands&
w10
w10
w10
w10
echo "pub server is online 1 / 4 "
w10
w10
w10
w10
cd
cd hldspriv
./hlds_run commands&
w10
w10
w10
w10
echo "priv server is online 2 / 4 "
w10
w10
w10
w10
cd
cd hltv
export command
./hltv command&
w10
w10
w10
w10
echo "hltv server is online 3 / 4 "
w10
w10
w10
w10
cd
cd dm
./hlds_run commands&
echo "deathmatch server is online 4 / 4 "
w10
w10
w10
w10
echo "servers are all online - gL and have FUN!"
any input would be great.
Last edited by [gotLan]-MarK; 10-27-2004 at 03:51 PM.
In that case it should work fine although using the full paths and only one cd command wouldn't hurt. If I was you I would forget about the clear statements altogether just now until the script is working so that you can see all of the output including error messages.
'leep: invalid time interval `2
Try `sleep --help' for more information.
: command not found:
: command not found:
: command not found: cd
: No such file or directorydspriv
: command not found
: command not found
'leep: invalid time interval `2
Try `sleep --help' for more information.
running hlds start stript
: command not found:
: command not found
: No such file or directorys
: command not found
running hlds start stript
: command not found
running hlds start stript
: command not found
: No such file or directorys
: No such file or directorys
: command not found
: command not found
running hlds start stript
: command not found
: command not found
: No such file or directorys
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.