Home>

I am working by connecting to an external server with ssh from ubuntu of WSL.
I want to run a python program in the background.
However, even if I start main.py as follows, it stops when I press any key.

python main.py>log.txt&


When stopped, the following message is displayed.

[1] + Stopped python main.py>log.txt


This happens in any python code.

The environment is as follows.
Please tell me who knows the cause and improvement method.

$python
Python 3.6.5 | Anaconda, Inc. | (default, Apr 29 2018, 16:14:56)
[GCC 7.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
cat/etc/issue
Debian GNU/Linux 7 \ n \ l
  • Answer # 1

    It is a signal that the program is finished.