I need to run some python scripts with infinite loop on ubuntu server (Amazon EC2). And I really like the idea to use nohup as it is simple and I can have output.out log file. I start script like
nohup script.py > output.out &
The process get started. I check it with jobs -l all fine.
Then I close the terminal and log back check processes with jobs -l and I can't see it any more. Can you advise me what am I doing wrong?
Best Answer
If you change session (log out and come back), there is no chance you'll see your script as job.
try
ps
instead.replacing myuser with actual login..