0

I have 3 scripts that I would like to run simultaneously when my raspberry boots up.

All 3 scripts will stay running while the raspberry stays awake, but on /etc/rc.local when i run my first script, the file stay on this command line and does not run the other ones.

sudo python3 /home/pi/Documents/script1.py <- stay here
sudo python3 /home/pi/Documents/script2.py <- does not execute
sudo python3 /home/pi/Documents/script3.py <- does not execute

Is there is another way to execute all scripts simultaneously when my raspberry boots up?

P.S.: All scripts use a multi thread, so run all of them on the same terminal will decrease more the performance of my rasp. I'm using Raspibian GNU/linux 10 (buster)

0

1 Answer 1

1

You can try this:

python3 /home/pi/Documents/script1.py &
python3 /home/pi/Documents/script2.py &
python3 /home/pi/Documents/script3.py
Sign up to request clarification or add additional context in comments.

1 Comment

There's no need for sudo, this scrpt already runs as root.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.