2

The problem is that if I execute a command (eg. a Python script), the terminal or script is waiting until the program return a exit status so that it can continue or return to terminal. Is there a way to circumvent this?

3 Answers3

3

In most shells, you can launch commands or processes in the background by appending an ampersand (&) to the command:

python file.py &
poke
  • 689
1

Several choices:

  1. Run it in screen. man screen, screen, myprorgamm, C-a d, screen -r.
  2. nohup myprogramm
  3. myprogramm &
0

Yes. If you're using Bash or a similar shell, type:

./your_script.py &