nohup /path/to/test.py > output.log & nohup python /path/to/test.py > output.log & You can find the process and its process Id with this command: ps ax | grep test.py