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:
> > nohup /root/relaydelay-0.04/relaydelay.pl
> ----
> this didn't work ;-(


Why?

What happened?

"this didn't work" doesn't tell us much.

> neither did
>
> /root/relaydelay-0.04/relaydelay.pl & > /var/log/relaydelay.log


The ampersand puts it into the background and then the > is for a
different shell process. Put the ampersand at the end.

> am trying
>
> /root/relaydelay-0.04/relaydelay.pl & 2>&1 > /var/log/relaydelay.log


Same problem, try:

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

I'd try nohup too.


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