Re: speaking of SysV scripts - starting perl program

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Craig White
Date:  
To: plug-discuss
Subject: Re: speaking of SysV scripts - starting perl program
On Tue, 2005-01-25 at 10:10 -0700, Craig White wrote:
> On Mon, 2005-01-24 at 20:13 -0700, Craig White wrote:
>
> > Problem #2 - starting it - it's a perl process...
> >
> > I can launch it with /root/relaydelay-0.04/relaydelay.pl &
> > probably want 2>&1 > /dev/null
> >
> > is there a better / more faceless way to deal with it?
> >
> > I really want it to run it as a daemon but am too uneducated to get
> > there.
> >
> ---
> launching a perl program (and keeping it running) from within another
> program (or in this instance a SysV script)
>
> if within the SysV script, I launch it with...
> /root/relaydelay-0.04/relaydelay.pl &
>
> is there a better way?

----
leaves this last issue...

if I use the above to start it up

/root/relaydelay-0.04/relaydelay.pl &

then it outputs to terminal I ran it from.

If I use

/root/relaydelay-0.04/relaydelay.pl 2>&1

then I don't get the terminal back at all - as if it hasn't forked. I
need to have this run as a service without output to a terminal and
obviously run without a terminal connection at all. How do I do this?

Craig

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss