Thread: Linux Question
View Single Post
Author Message
uurbyrkdr
Senior Member
Join Date: Apr 2015
Old 03-04-2016 , 17:44   Linux Question
Reply With Quote #1

Hi.
I'm using gameservermanager's script for host the servers.
I have 3 server, and i want to start or restart all of them in 1 command.
But; for make this, i have to switch user.

For example,

Code:
su - server1
./csgoserver restart
exit
su - server2
./csgoserver restart
exit
su - server3
./csgoserver restart
exit
How can i make this with 1 command?
I tried wrote them in a .sh file, but failed.
Thanks for helps..
uurbyrkdr is offline