Jump to content

Need a menu driven script for linux please


Recommended Posts

Hello everybody.

I need a script please that can be run from root.

WE NEED IT TO START/STOP/RESTART (./commander) an number of servers.

We have admins that do this from root and it causes many problems.

So we need something like.....at root run a script

It needs to change user ...then..

This will ask for start/stop/restart

Then ask for which game type.....ie..cod1.cod2,cod3,cod4 etc

Then which server to action the command.

If somebody could help me with the main structure and maybe one example of a commandline like ie.... start cod2 europe

I can use that as template for all the others.

Hope that makes sense. Many Thanks

________________________

Link to comment
Share on other sites

>Hope that makes sense

sorry , it doesn't

what exactly do you want the script to do?

you want it to stop some sort of service? which service ? on what computer ? what OS? from which OS?

if you are using linux ,placing something in cron is probably your best option, but you will need to give us some more information here...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy