How to exit AWS shell without killing job

611 Views Asked by At

I am running a long python process on a Amazon Web Service shell, say it is

python sample.py

When I exit the shell, it will kill the process, so I tried putting it in the background with nohup python &.

I exited the shell and when I came back, I typed ps -ef | grep python, and the process was still there, however it was no longer printing any output (the job keeps writing output). I tried fg <job_number> and I got "no such job".

The result for ps -ef | grep python is

ubuntu    2433     1 81 02:55 ?        00:01:53 python sample.py

Is the process still running? How do I keep checking its output?

0

There are 0 best solutions below