Drieux wrote: > > On Monday, August 12, 2002, at 11:31 , Ahmed Moustafa wrote: > >> Drieux wrote: >> >>> what you want is >>> how do I create a demon process >>> that will be able to run independent of my programme: >>> cf: >>> http://www.wetware.com/drieux/pbl/Sys/daemon1.txt >> >> >> If it's not possible to use Proc::Daemon, what would be the other >> options, >> please? > > > do what you will need to do to daemonize - > reset STDIN/STDOUT/STDERR to other FD - in > the above case I reset them to a unique log, > then it is time to do a 'double fork' of the > process into the background - making sure to > set the session id enroute.... That normally > makes sure that one is no longer attached to > a controlling TTY...
Could you give a sample code, please? --Ahmed Moustafa -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]