Re: Cron says "bad command"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Geoffrey Leach wrote:
> On 02/18/2010 03:38:55 PM, Rick Sewill wrote:
>> On Thu, 2010-02-18 at 12:05 -0700, Craig White wrote: 
>>> On Thu, 2010-02-18 at 10:01 -0800, Geoffrey Leach wrote:
>>>> In /etc/crontab, I have this line:
>>>> 30  *  *  *  *  /home/root/fix_mail
[SNIP]
> Thanks Craig and Rick for the suggestions. AFAICT the problem is with 
> the processing of the crontab file itself, not with the execution of 
> the command. FWIW, when the command is executed from /etc/cron.hourly 
> it works without a problem.

Ah, yes.  The format of /etc/crontab is different from that for individual
users' crontab files.  You need to include the user ID:

     30  *  *  *  *  root /home/root/fix_mail
                     ^^^^
-- 
Bob Nichols     "NOSPAM" is really part of my email address.
                 Do NOT delete it.

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux