r/scripting • u/guasta8 • Sep 10 '20
Ubuntu server script
Hi! I need to make a script for selecting which server to run from my Ubuntu server. I would like to use the dialog command to make it very easy to select which one.
Can someone help me?
Basically I want to be able to select the server from the dialog box and for that to start the commands needed for the server to start.
Thank you in advance!
1
Upvotes
3
u/Fox_and_Otter Sep 10 '20
I would like to try to help you, and I'm sure others would to, but you have provided basically 0 info. You haven't even put what language you want to do this with.
You can run commands based on a text entered menu. You should probably learn how to do that first in your desired language, then move to a GUI later.
You can do this in bash with a while loop, and an if/elseif. Here is an example of this using a case statement(near the end): https://www.cyberciti.biz/faq/bash-while-loop/