Application and shell launcher, with editable config file, and log result page.
Use "#" char to insert comment line. Text before "=" char is launcher label, text after "=" char is command to execute.
There aren't any escape character to use "#" and "=" at this moment.
# start/stop gpsd start gpsd=/etc/init.d/gpsd start stop gpsd=/etc/init.d/gpsd stop # launch battery battery=battery.py
New features since version 0.3:
- you can edit button height an width using the properties
In these examples the buttons should be 45 pixel height and 50 pixel width at minimum. You can use only one of them (width is not so useful) or neither but if you insert a property you have to use number value greater than zero or -1.
I'm using "^" char for properties in next releases.
- parameters management:
Now it's possibile to execute the same command with different parameters. I have add this features to manage mainly daemons. The rules:
This line build a button with label "start gpsd" which pass the parameters start (tag %%) and another button with "stop" label wich pass parameter stop. The button nowait is valid only for the first call: "/etc/init.d/gpsd start".
The same as before but there is another button labelled "rel" which pass the parameter "reload".
start gpsd=/etc/init.d/gpsd start??stop=stop
This is a valid row but it produce a wrong result because the first button execute
and the second button produce
/etc/init.d/gpsd start stop
If the command need parameters and you want to use more buttons, you have to use the tags %% and ??.
The first button produce:
and the second:
"NoW" equals "No Wait". Use this button if you want to launch your command in background. You don't catch any result or logs on logbook because shortom doesn't wait the end of the program. If you have to launche graphical program this button is the better choice.
"Run". ShortOm launch the command and wait the end. Every message print in standard output end error will be logged in logbook.