Sudo: /root/PiBits/ServoBlaster/user/./servod: command not found ![]() Os.system('sudo ~/PiBits/ServoBlaster/user/./servod')Īnd for some reason, it's not running my script correctly because I get the following error in my logs: servod: no process found However, in the python script that I am trying to run, I have the following code: os.system("sudo killall servod") desktop Desktop Entry, but that only worked for me while I had an external monitor plugged in, and my raspberry pi will be running without one.Īlso, I was able to make my script run using the service method and now the rc.localīy adding this line: sudo bash -c '/usr/bin/python3 /home/pi/Projects/capstone/main.py > /home/pi/capstone.log 2>&1' & ![]() The only way that I was able to work was by doing a. I have tried many ways in the several tutorials I have tried, with crontab, by making a service with systemd, with rc.local however none of these have worked. However, it needs access to the internet, so I have to wait for the network. I have a python script that I need to run at startup. I'm having an insane amount of trouble with my script at startup, I've tried countless ways and spent hours trying to get this to work.
0 Comments
Leave a Reply. |