How to run two scripts simultaneously for Grove Pi?

I am currently using GrovePi with two barometric sensors. I am wondering if there is a way to run two python code from the command line at a time. Can anyone help me please! I use the Linux operating system and run the code using the command line. I use

sudo python script1.py &
            script2.py &

which gives

bash: script2.py: command not found

How can i fix this?

Screenshot of the error.

+4
source share
1 answer

Bash, & , ; , , sudo python script1.py , script2.py . , script2.py.

, .

sudo python script1.py &
sudo python script2.py &

, sudo, script , , .

+1

Source: https://habr.com/ru/post/1659822/


All Articles