Date: Tue, 3 Mar 2009 16:10:34 -0500 From: APseudoUtopia <apseudoutopia@gmail.com> To: Glen Barber <glen.j.barber@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: Cron Not Sending Mail Message-ID: <27ade5280903031310u6d7956u830938f27ea535c6@mail.gmail.com> In-Reply-To: <4ad871310903021914q647d6a40ncdb0bb9d8a3582c9@mail.gmail.com> References: <27ade5280903011124v4d6d9fdq2071d5ab44a37ca9@mail.gmail.com> <4ad871310903021914q647d6a40ncdb0bb9d8a3582c9@mail.gmail.com>
index | next in thread | previous in thread | raw e-mail
On Mon, Mar 2, 2009 at 10:14 PM, Glen Barber <glen.j.barber@gmail.com> wrote: > On Sun, Mar 1, 2009 at 2:24 PM, APseudoUtopia <apseudoutopia@gmail.com> wrote: > [snip] >> >> ##### >> # User www's crontab >> # Note, I also tried removing the MAILTO to no avail >> ##### >> MAILTO=root >> # m h dom mon dow cmd >> * * * * * echo "Hello" >> >> > [snip] > > 1.) You are not using the full path to /bin/echo, which is why it is failing. > > 2.) This is a poor designed way to test cron's mail output. > > A Better(tm) way would be something like: > MAILTO=root > */5 * * * * /bin/ping -c1 localhost >/dev/null > > which would mail to root on success or failure. > > Regards, > > -- > Glen Barber > Thanks for the tips. I've put the following line in my normal user account's crontab (This account does have a shell, it's one I use on a daily basis): SHELL=/bin/sh MAILTO=my_email_account@gmail.com * * * * * /sbin/ping -c4 localhost I'm getting no emails at all. In /var/log/maillog, I'm getting the following output: Mar 3 21:10:00 domain sendmail[86797]: n23LA0td086797: from=www, size=0, class=0, nrcpts=0, msgid=<200903032110.n23LA0td086797@subdomain.domain.tld>, relay=www@localhosthelp
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?27ade5280903031310u6d7956u830938f27ea535c6>
