Hi Chaitanya, On Monday 24 May 2010 16:19:25 Chaitanya Yanamadala wrote: > hai > i have a perl script which will automatically check for the existing files > and then ftp them to a server, this one runs in a loop until i kill it, now > what i wants is i want to make this as a service so that it can keep on > running until i kill the service. so does any one have an idea how to do > this?? >
A process that runs in the background uninterrupted is known as a "daemon" in UNIX-land (Linux is historically just one of the many UNIX flavours). There are some CPAN modules that encapsulate the details of daemonising a process, and they can be found here: http://search.cpan.org/search?query=daemon&mode=all I cannot vouch for the quality of any of them, since I haven't tried them. "perldoc -q daemon" recommends http://search.cpan.org/dist/Proc-Daemon/ . Regards, Shlomi Fish -- ----------------------------------------------------------------- Shlomi Fish http://www.shlomifish.org/ What does "Zionism" mean? - http://shlom.in/def-zionism God considered inflicting XSLT as the tenth plague of Egypt, but then decided against it because he thought it would be too evil. Please reply to list if it's a mailing list post - http://shlom.in/reply . -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] http://learn.perl.org/
