Re: Cron says "bad command"

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

 



On 02/19/2010 02:51:56 PM, Konstantin Svist wrote:
> On 02/18/2010 10:01 AM, Geoffrey Leach wrote:
> > In /etc/crontab, I have this line:
> > 30  *  *  *  *  /home/root/fix_mail
> >
> > root@mtranch[221]->ls -l /home/root/fix_mail
> > -rwxr-xr-x 1 root root 1324 2010-02-18 07:04 /home/root/fix_mail*
> >
> > Crond sees this and says (from /var/log/cron)
> > Feb 18 07:06:01 mtranch crond[1362]: (CRON) bad command
> (/etc/crontab)
> >
> > /home/root/fix_mail is a perl script,
> > root@mtranch[222]->head -1 /home/root/fix_mail
> > #!/usr/bin/perl
> >
> > And executes correctly when run from the command line.
> >
> > Any thoughts on what the source of the complaint might be?
> >
> > Thanks.
> >
> >   
> 
> You have your /root in /home?? That's unusual...
> Maybe there's some permissions problem with /home?

Hmmm .. just can't get no respect :-)

It may be unusual to have /root in /home, but it simplifies the 
intallation of new versions of Fedora.

I finally gave in and read the source. It appears that cron requires a 
user name before the command. That is, 

	 *  *  *  *  *  <username> command to be executed

in /etc/crontab entries.



-- 
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