added command handling

This commit is contained in:
root 2017-02-22 22:33:58 +00:00
parent b1883f0ec6
commit e177bedd69
3 changed files with 68 additions and 1 deletions

9
run.sh
View file

@ -1,6 +1,7 @@
#!/bin/bash
cd "$(dirname $0)"
(
while true; do
/usr/bin/python3 chch-power.py >/dev/null 2>&1
@ -8,3 +9,11 @@ cd "$(dirname $0)"
done
) &
disown $!
(
while true; do
./command_watcher.sh >/dev/null 2>&1
sleep 1
done
) &
disown $!