How to run python script in background after i logout
Thanos Tsouanas
thanos at sians.org
Sun Jul 24 05:53:41 EDT 2005
On Sun, Jul 24, 2005 at 12:51:17PM +0300, Thanos Tsouanas wrote:
> On Sun, Jul 24, 2005 at 02:43:44AM -0700, 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,
>
> This hasn't got to do with python.
>
> It's a unix/linux question.
>
> Check at(1):
> man at
Since you want it to run all the time, check cron(8) as well.
Maybe you would like to write a small script, executing script.py if it
is not already running.
--
Thanos Tsouanas .: My Music: http://www.thanostsouanas.com/
http://thanos.sians.org/ .: Sians Music: http://www.sians.org/
More information about the Python-list
mailing list