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]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux