Wrapper app or code for running shell scripts
Really badly needed... could someone publish a link to an open source code framework for a simple launcher or wrapper app for starting a command line command or shell script? I have two simple commands I need regularly:
- Mount CIFS network shares, see the question https://together.jolla.com/question/28377/using-network-file-shares-smbclient-in-mer-repository-and-compiling/
- Sleeper for turning off mediaplayer, see https://together.jolla.com/question/27469/stop-mediaplayer-radio-with-sleep-or-timer-shell-script/
It would be a great help starting them through a native app interface. Some additional requirements / wishes:
- Allow running default user (nemo) or su-ed (root) scripts
- Optional parameter input with value, slider, pull-down...
- Implement script start/stop (parameter passing)
- Implement cover functionality: running status, start/stop
Ideally the wrapper/launcher app could be generalized in such a way, that it would be able to read some settings (including the needed shell script) from a text or xml file. Otherwise it would have to be compiled separately for every new shell script, but that's not really an issue and could have even some other advantages (e.g. probably from a security point of view too).
This question is related to https://together.jolla.com/question/24190/launch-shell-commands-from-user-interface/, but it explicitly asks for publishing a 3rd party app code that could be adapted and used individually.
The simple desktop launcher workaround as suggested in the above question is of no help for scripts which need some root-only command. Still needing an app who would enable all this.
melg01 ( 2014-03-04 22:19:28 +0200 )editWhy don't you go ahead yourself instead of asking for somebody doing the job for you? Shouldn't be that complicated.
marsch ( 2014-03-05 09:58:25 +0200 )edit