Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Aug 2001 14:28:50 -0700
From:      "doug" <want_2_learn_freebsd@hotmail.com>
To:        <freebsd-questions@FreeBSD.ORG>
Subject:   Re: How to I get a script to run as a daemon?
Message-ID:  <DAV25XpwJd9dGmNFg6p00005de6@hotmail.com>
References:  <ONEEJMFOJLJHIMJMLPMIEECNCHAA.Exel@SpeakEasy.Net>

next in thread | previous in thread | raw e-mail | index | archive | help
Thanks Alex!

That was the solution I was looking for yesterday--thanks so much!

Doug.

----- Original Message -----
From: "Alex Vargas" <Exel@SpeakEasy.Net>
To: "doug" <want_2_learn_freebsd@hotmail.com>;
<freebsd-questions@FreeBSD.ORG>
Sent: Saturday, August 18, 2001 2:13 PM
Subject: RE: How to I get a script to run as a daemon?


> 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?DAV25XpwJd9dGmNFg6p00005de6>