Posts: 20
Joined: Fri Oct 14, 2016 5:10 am

Run Python Script at Startup

Wed Oct 26, 2016 2:10 am

I'm sure this has been explained ad nausem, however the post explaining how to do it eludes me...

I have a python script I want to run in the background when the raspberry boots up. The script I run requires a .json file to be present in the folder that the script command runs from (as far as I understand it). The .json file allows me to write to a google sheets document.

What is the most robust solution to the problem?

Location of python file:

I can run the file with the following command:
(sudo python /home/pi/level1/level2/Python/ $

What do I do now?

Thank you

Return to “Python”