Process id dismiss when ssh connect again

December 21, 2017 481 views
Development Python Frameworks Ubuntu Debian

In order to execute a task background, I use nohup command.

 # nohup python &

Everything works well but when I close ssh connection and connect it again, I find the process id does not exist.The python task sends a request to an api every 20 minutes.From the api server console, I find the process still works.However from ps command I can not find the process id

Be the first one to answer this question.