Page 1 of 1

mochard Cm15pro bash

Posted: Tuesday 13 March 2018 10:24
by webtense
ood morning,

I'm using a script that runs when the device starts.

but I must do something wrong ..

sudo -u pi echo "pl a8 on" | nc localhost 1099 sleep 30 | sudo -u pi sudo -u pi echo "pl a8 off" | nc localhost 1099

the idea is to start A8 and after 30 seconds turn off