Re: speaking of SysV scripts - starting perl program

Kezdőlap
Csatolmányok:
Üzenet email-ben
+ (text/plain)
Üzenet törlése
Válasz az üzenetre
Szerző: Jeremy C. Reed
Dátum:  
Címzett: plug-discuss
Tárgy: 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