Playing around with my Raspberry Pi Zero , wrote a tutorial to run a python script on boot using crontab
https://www.evernote.com/l/AhnC6VAx4UxE ... lyRstrTSZY
Enjoy!
Automate a python script on boot
Moderators: adafruit_support_bill, adafruit
Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
- adafruit_support_mike
- Posts: 67446
- Joined: Thu Feb 11, 2010 2:51 pm
Re: Automate a python script on boot
Nicely done! Thanks for posting it.
- caternuson
- Posts: 92
- Joined: Thu Aug 25, 2016 5:54 pm
Re: Automate a python script on boot
In your cron entry, might want to use >> instead of > to append the messages. Otherwise, +1 for redirecting stderr to stdout.
Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/