crontab is not working

Matthew Seaman matthew at
Sat Mar 5 13:39:13 UTC 2016

On 05/03/2016 04:33, gahn via freebsd-questions wrote:
> yes i did remove that "root", but it still a no go. nothing happened.
> run that script manually with "bash /root/" with no
> issues. i am puzzled.

You're expecting the output of that SNMP walk to be mailed back to you?
 Check /var/log/maillog to see if there's any attempt to send e-mail out
of cron.  Check (via mailq and 'mailq -Ac') to see if the message is
stuck in the mail queue somewhere.  Examine the files in /var/mail to
see if the message was delivered to a different user mailbox than you
were expecting.

You can add a line at the top of your crontab to ensure email is sent to
a specific address, like so:

MAILTO=ipfreak at



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 931 bytes
Desc: OpenPGP digital signature
URL: <>

More information about the freebsd-questions mailing list