shell to call other shell

This commit is contained in:
Gerrit Linnemann 2015-11-15 21:52:12 +01:00
parent ec76343af6
commit 123175287a
2 changed files with 20 additions and 2 deletions

View File

@ -102,8 +102,8 @@ exports.play = function(idx) {
}*/
var Child = spawn(
App.get('tools_root')+'start_radio.sh',
[]
App.get('tools_root')+'action.sh',
['play']
);
// listen for any response from the child

18
kitchenradio/bin/action.sh Executable file
View File

@ -0,0 +1,18 @@
#!/bin/sh
# V0.1
### DEFINITIONS
MY_PATH="$(pwd)"
#. $MY_PATH/bin/_inc/def_text_coloring.sh
### PRORGAM
echo "Action: $1"
case $1 in
1) echo "play" ;;
*) echo "INVALID ACTION!" ;;
esac