Skip to content

Instantly share code, notes, and snippets.

@mstaflex
Created April 30, 2015 14:25
Show Gist options
  • Save mstaflex/2ccf010a40d0f284a9dc to your computer and use it in GitHub Desktop.
Save mstaflex/2ccf010a40d0f284a9dc to your computer and use it in GitHub Desktop.
Setting up simple execution environment with tmux and rc.local
# executing a script for user 'pi' with std. shell
su -c "./home/pi/run_robbi_demo.sh" -s /bin/sh pi
#!/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