Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Aug 2001 17:13:20 -0400
From:      "Alex Vargas" <Exel@SpeakEasy.Net>
To:        "doug" <want_2_learn_freebsd@hotmail.com>, <freebsd-questions@FreeBSD.ORG>
Subject:   RE: How to I get a script to run as a daemon?
Message-ID:  <ONEEJMFOJLJHIMJMLPMIEECNCHAA.Exel@SpeakEasy.Net>
In-Reply-To: <DAV26kBbKP7Ie8tlMaz00005eda@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ONEEJMFOJLJHIMJMLPMIEECNCHAA.Exel>