How to run python script in background after i logout
Steve Holden
steve at holdenweb.com
Mon Jul 25 01:22:24 EDT 2005
Harlin Seritt wrote:
> I have a remote linux server where I can only access it via ssh. I have
> a script that I need to have run all the time. I run like so:
>
> python script.py &
>
> It runs fine. When I log off ssh I notice that the script died when I
> logged off. How do I make sure it stays running?
>
> thanks,
>
> Harlin Seritt
>
If you want to trigger each run manually, try
nohup python script.py &
This should allow the job to continue running after you've logged out.
regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
More information about the Python-list
mailing list