Intel® Makers
Intel® Edison, Intel® Joule™, Intel® Curie™, Intel® Galileo
Announcements
Welcome - This is a Peer-to-Peer Forum only. Intel has discontinued these products but you may find support from other customers on this Forum
9877 Discussions

Run a program on background

hdong5
Novice
1,043 Views

Hi All,

I understand that "nohup python xxx.py" can run a python script on background in Linux system.

But when I use "nohup python xxx.py" in yocto linux, it seem as follow:

root@edison:~# nohup xxxxx.py

nohup: appending output to nohup.out

Then it don't allow me to go back to the terminal until the end of program.

I am wondering how can I run the script on background and then go back to the terminal, so that I can run other programs.

Many thanks

Hao

1 Solution
Carlos_M_Intel
Employee
189 Views

Hi hao,

Hi you can use python xxx.py &

In order to stop it you will need to run the command ps and check the PID for python xxx.py, for example if the PID is 283, in order to stop the script you will need to run kill 283

Regards,

Charlie

View solution in original post

2 Replies
Carlos_M_Intel
Employee
190 Views

Hi hao,

Hi you can use python xxx.py &

In order to stop it you will need to run the command ps and check the PID for python xxx.py, for example if the PID is 283, in order to stop the script you will need to run kill 283

Regards,

Charlie

hdong5
Novice
189 Views
Reply