Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Jan 2010 02:34:17 +0200
From:      Kaya Saman <SamanKaya@netscape.net>
To:        Chuck Swiger <cswiger@mac.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Crontab not working??
Message-ID:  <4B4E6689.9090206@netscape.net>
In-Reply-To: <6BD85777-C14C-4F0F-83AD-9DEF52D22E85@mac.com>
References:  <4B4E6337.5000806@netscape.net> <6BD85777-C14C-4F0F-83AD-9DEF52D22E85@mac.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Thanks, I inputted the data as you suggested so now I will wait until 
the time specified to see if it ran or not!

Regards,

Kaya

Chuck Swiger wrote:
> Hi--
>
> On Jan 13, 2010, at 4:20 PM, Kaya Saman wrote:
>   
>> It didn't work so I tried to cut down areas which I suspected might not work and ended up with the syntax below for root:
>>
>> crontab -l shows:
>>
>> @reboot           root    /usr/local/sbin/logwatch.pl
>> 02 4 * * *     root    /usr/local/sbin/logwatch.pl
>>     
>
> You're using the syntax for a system-wide crontab, ie, /etc/crontab.  Per-user crontabs do not have the middle field listing the user to run as; re-run crontab -e and try this instead:
>
> @reboot     /usr/local/sbin/logwatch.pl
> 02 4 * * *  /usr/local/sbin/logwatch.pl
>
> Regards,
>   




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