At work I have a long command that I frequently execute in terminal. It has 6 variables that I have to change each time I use it. Rather than copy and paste my command from a text file and manually alter the variables, I am trying to come up with a simply way to create a GUI that will allow me to make changes and execute it. Probably there is other solution than HTML.. The only purpose is to be able to conveniently pass the arguments to a command line.
I use Ubuntu 10.04 (Lucid Lynx).
The suggestions are very appreciated.
3 Answers 3
2 Comments
I suggest you to write a shell script taking input variables. You could then call it like this (example):
myScript.sh paramValue1 paramValue2
3 Comments
The simplest way to do this from a browser is probably to build an HTML form that submits to a PHP script. Have the PHP script pull the $_POST parameters off and exec them.
You may find that your computer is already running PHP in a web server, or that it is very easy to install and use.