Re: speaking of SysV scripts - starting perl program

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Jeremy C. Reed
Date:  
To: plug-discuss
Subject: Re: speaking of SysV scripts - starting perl program
On Tue, 25 Jan 2005, Craig White wrote:

> wow, sounds to be exactly what I want...
>
> do I just do
>
> nohup /root/relaydelay-0.04/relaydelay.pl 1>/var/log/relaydelay.log \
> 2>&1 &
>
> but if it outputs to non-tty, why would I want the 1 and 2 outputs to
> redirect?


In that case, it would not work -- you would get nothing in your log file.

Maybe you could rewrite relaydelay.pl to specifically log via syslog or
append to a file itself?

Or just use the example that worked for you without nohup.

Jeremy C. Reed

                 BSD News, BSD tutorials, BSD links
                http://www.bsdnewsletter.com/


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