shell to call other shell
This commit is contained in:
parent
ec76343af6
commit
123175287a
@ -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
18
kitchenradio/bin/action.sh
Executable 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
|
||||
Loading…
x
Reference in New Issue
Block a user