Created
April 30, 2015 14:25
-
-
Save mstaflex/2ccf010a40d0f284a9dc to your computer and use it in GitHub Desktop.
Setting up simple execution environment with tmux and rc.local
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# executing a script for user 'pi' with std. shell | |
su -c "./home/pi/run_robbi_demo.sh" -s /bin/sh pi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# starting new tmux session with name 'robbi' including one window called 'demo' | |
tmux new-session -s "robbi" -d -n "demo" | |
tmux send-keys -t "robbi:demo" C-z 'python ~/driver_test.py' Enter |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment