Do u have any working model script for this..
@eric thank u for ur reply..
but i cannot able to understand it.
i am not that much of an expert in LINUX..

Can u explain it to me in more detail. If u have an example can u just let
me know..

Chaitanya




On Mon, May 24, 2010 at 6:57 PM, Eric Veith1 <eric.ve...@de.ibm.com> wrote:

> Chaitanya Yanamadala <dr.virus.in...@gmail.com> wrote on 05/24/2010
> 03:19:25 PM:
> >  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??
>
> Normally, you'd fork and then end the parent. CPAN holds some modules that
> will make your life easier regarding this. Search for "daemon" and have a
> look at, e.g., Daemon::Easy or Daemon::Daemonize.
>
> However, be advised that the whole fork-and-quit backgrounding stuff is
> broken by design[1]. You should actually look into a software like Dan
> Bernstein's Daemontools and keep your script itself as it is.
>
> HTH.
>
>                  Eric,
>
>
> [1] http://cr.yp.to/daemontools/faq.html
>
> --
> Eric MSP Veith <eric.ve...@de.ibm.com>
> Hechtsheimer Str. 2
> DE-55131 Mainz
> Germany
>
> IBM Deutschland GmbH
> Vorsitzender des Aufsichtsrats: Erich Clementi
> Geschäftsführung: Martin Jetter (Vorsitzender), Reinhard Reschke, Christoph
> Grandpierre, Matthias Hartmann, Michael Diemer, Martina Koederitz
> Sitz der Gesellschaft: Stuttgart
> Registergericht: Amtsgericht Stuttgart, HRB 14562
> WEEE-Reg.-Nr. DE 99369940
>
>

Reply via email to