Run Scripting Notes
Mac / Linux / Raspberry PI
- shell files (.sh)
- run with sh
file1
PC
- batch files (.bat)
- run with batch
Crontabs
- schedule scripts to run on start / etc
- Steps:
- crontab -e
- Run at reboot. Add optional log
- @reboot cd /home/pi/Desktop/code/can_net && sh run.sh >> log/cron.log 2>&1
- exit with :x