Date: Mon, 2 Mar 2009 22:14:18 -0500 From: Glen Barber <glen.j.barber@gmail.com> To: APseudoUtopia <apseudoutopia@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: Cron Not Sending Mail Message-ID: <4ad871310903021914q647d6a40ncdb0bb9d8a3582c9@mail.gmail.com> In-Reply-To: <27ade5280903011124v4d6d9fdq2071d5ab44a37ca9@mail.gmail.com> References: <27ade5280903011124v4d6d9fdq2071d5ab44a37ca9@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Mar 1, 2009 at 2:24 PM, APseudoUtopia <apseudoutopia@gmail.com> wro= te: [snip] > > ##### > # User www's crontab > # Note, I also tried removing the MAILTO to no avail > ##### > MAILTO=3Droot > # m =A0 =A0 h =A0 =A0 =A0 dom =A0 =A0 mon =A0 =A0 dow =A0 =A0 cmd > * =A0 =A0 =A0 * =A0 =A0 =A0 * =A0 =A0 =A0 * =A0 =A0 =A0 * =A0 =A0 =A0 ech= o "Hello" > > [snip] 1.) You are not using the full path to /bin/echo, which is why it is faili= ng. 2.) This is a poor designed way to test cron's mail output. A Better(tm) way would be something like: MAILTO=3Droot */5 * * * * /bin/ping -c1 localhost >/dev/null which would mail to root on success or failure. Regards, --=20 Glen Barber
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4ad871310903021914q647d6a40ncdb0bb9d8a3582c9>