[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-questions
Subject:    RE: How to I get a script to run as a daemon?
From:       "Alex Vargas" <Exel () SpeakEasy ! Net>
Date:       2001-08-18 21:13:20
[Download RAW message or body]

Doug,

>background.  Right now, I have cron run it, but it gives me output every
>single minute by e-mail!!

Sample cron line with no mail output:

0,10,20,30,40,50 * * * * /home/mydir/botchk >/dev/null 2>&1


The key is the ">/dev/null 2>&1" at the end - this will redirect your output
to /dev/null, thus eliminating the
spammed inbox. Hope this helps.

aV


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic