in reply to How to get a persistent daemons after exiting the session?

I can not find any way to do this other than through the use of nohup on the linux/unix.

You could start your program in background in a subshell, i.e.: instead of simply calling something like:

/usr/local/bin/myprogram.pl &

you could run it as

( /usr/local/bin/myprogram.pl & )

Putting those parentheses around starts a new shell and runs the program in it. When you close your "main shell" (that is, the one from which you ran the program) the program remains alive.

Ciao!
--bronto


The very nature of Perl to be like natural language--inconsistant and full of dwim and special cases--makes it impossible to know it all without simply memorizing the documentation (which is not complete or totally correct anyway).
--John M. Dlugosz

Replies are listed 'Best First'.
Re: Re: How to get a persistent daemons after exiting the session?
by hackmare (Pilgrim) on Mar 16, 2003 at 22:47 UTC

    Simple, elegant, unfortunately won't work on DOS/win systems.

    I'm using this great idea and it is working very well. At least it buys me time to get something more rigorous in place. Thanks for this pointer.

    hackmare.