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/
Locked
User avatar
nemesis_c
 
Posts: 53
Joined: Wed Jan 06, 2016 5:10 pm

Automate a python script on boot

Post by nemesis_c »

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!

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: Automate a python script on boot

Post by adafruit_support_mike »

Nicely done! Thanks for posting it.

User avatar
caternuson
 
Posts: 92
Joined: Thu Aug 25, 2016 5:54 pm

Re: Automate a python script on boot

Post by caternuson »

In your cron entry, might want to use >> instead of > to append the messages. Otherwise, +1 for redirecting stderr to stdout.

Locked
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/

Return to “Adafruit Raspberry Pi® accessories”