raspberry pi - Autorun a script in the background at boot and suppress output if all goes well -
i'm using raspbian on pi , have script control home automation stuff.
the script designed continuous loop monitoring serial port , sending requests , logging events goes.
by default prints output , polling symbol every 10 seconds (to let know it's running). want keep feature, if run in background, don't want know (unless there's error).
if try , start script >nul
still outputs screen.
also, have script starting in /etc/rc.local
in background, how can determine if started without error if starts in background?
i use screen kind of process launching
screen -d -m -s asd top
when there problem can attach screen by:
screen -r -x -s asd
Comments
Post a Comment