Re: crontab

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

 



Thibaut <thibaut@xxxxxxxxxx> writes:
> Then I past "*/15 8-18 * * 1-5 parse.sh 2>/dev/null 1>/dev/null"

For testing, you should NOT redirect stdout or stderr.  That way, you
can see what it's doing.  After it's working correctly, *then* you can
discard the output.

> Then I exit and have the message : "crontab: installing new crontab"

Normal.

> When I'm logged as root I can execute normaly : "./parse.sh"

Note that (1) you're not passing the same command line as the crontab,
and (2) you're not in the same working directory as the crontab.  You
probably don't have the same $PATH either.

> Where I am wrong ?

Likely, you need to make the crontab line something like this:

*/15 8-18 * * 1-5 /root/parse.sh

Note the explicit path.  Also, parse.sh might need to do a "cd /root"
so that it's in the directory it wants to be in.

[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