Launch script on Linux using Putty
Grant Edwards
grante at visi.com
Mon Apr 2 14:40:49 EDT 2007
On 2007-04-02, Michael Hoffman <cam.ac.uk at mh391.invalid> wrote:
>>> 1. The easiest is to run nohup on your script in the background:
>>>
>>> $ nohup myscript.py > output.txt 2> error.txt &
>>>
>>> Then you can disconnect but your script will keep running. Try man nohup
>>> for more information.
>>>
>>> 2. Use GNU screen on your remote terminal, and detach the screen instead
>>> of logging off.
>>>
>>> 3. Set up your script to fork as a daemon. Google for ["python cookbook"
>>> fork daemon] to find a few recipes for this.
>
> [Ulysse]
>> 1. nohup seems not to be installed on my "reduced linux distribution".
>> It's a OpenWrt tunning on my WRT54GL Broadband router.
>
> If you are running bash, you can do this:
He's not running bash. He's running busybox's shell.
[He'd be far better off asking his question in an OpenWRT or
Busybox forum, since it's got absolutely nothing to do with
Python.]
--
Grant Edwards grante Yow! They don't hire
at PERSONAL PINHEADS,
visi.com Mr. Toad!
More information about the Python-list
mailing list