Sam Ducker Sam Ducker - 2 years ago 136
Linux Question

Running a Python script in the background

Hey I'm running a python script that uses selenium.

When I run python3.5 it works a treat. When I use nohup python3.5 it doesn't work and nohup.out doesn't have any content and of course the python3.5 ends when I close my shell.

Answer Source

You should add & after nohup command:

nohup python &
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download