Re: Problems running SH jobs using CRON

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

 



Thanks for everbody's help!  Both jobs ran after removing root as
suggested.  Thanks agan!

On Tue, Aug 12, 2008 at 7:57 PM, Aldo Foot <lunixer@xxxxxxxxx> wrote:
> On Tue, Aug 12, 2008 at 4:13 PM, Dave Burns <tburns@xxxxxxxxxx> wrote:
>> On Tue, Aug 12, 2008 at 1:04 PM, jeff goudie <jrgoudie@xxxxxxxxx> wrote:
>>>
>>> [root@alice jeff]# cat /var/spool/cron/root
>>> 45 12 * * 0 root /bin/sh /home/jeff/jeffbkup.sh
>>> 11 3 * * 6 root /home/jeff/rsynchbkup.sh
>>>
>>> When each scheduled job fires off, I get an email from Cron_Daemon
>>> with this message:
>>>
>>> /bin/sh: root: command not found
>>
>> Remove the word 'root' from both lines?
>>
>> I'm not positive, but if the two scripts have the proper #!/bin/sh
>> line in them, putting /bin/sh in the crontab line should also be
>> unnecessary.
>>
>> Dave
>>
>
> That's correct.
>
> The lines should work like this:
> 45 12 * * 0 /home/jeff/jeffbkup.sh
> 11 3 * * 6  /home/jeff/rsynchbkup.sh
>
> ~af
>
> --
> fedora-list mailing list
> fedora-list@xxxxxxxxxx
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
>

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[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