Python Process that can survive
Jeff Davis
jdavis at empires.org
Fri Sep 27 23:34:06 EDT 2002
$ python -c "
> import time
> time.sleep(100) " &
That seems to get me a background process. Can you describe your problem in
more detail? perhaps show what you did with perl?
Regards,
Jeff Davis
Christopher Peery wrote:
> Alright... I love python but I think I may have found a definite
> problem. I can't seem to run a python process, kick it to the
> back-ground, and then kill the terminal that started it. With most
> other things, the python process would keep running in the
> back-ground regardless. For me, the process always dies with the
> terminal.
>
> So my question: is there a way to separate a python script from the
> underlying terminal so that this will not happen.
>
> I'm hoping for some scheme that's supported by the language. I've
> found a few hacks on-line where the python process is daemonized
> but this requires shutting down all the standard io streams.
> There's got to be a better way especially since it can be done in
> Perl very easily with no special tricks.
>
> By the way, I'm doing this on a linux box.
>
> Chris
More information about the Python-list
mailing list