Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I cannot seem to get cron to work on my host.
redhat
# uname -a
Linux seebs11.wes.army.mil 2.6.9-5.ELsmp #1 SMP Wed Jan 5 19:30:39 EST 2005 i686 i686 i386 GNU/Linux
# rpm -q vixie-cron
vixie-cron-4.1-20_EL
# /sbin/service crond status
crond (pid 15437) is running...
Example:
I look in /etc/ and see a cron.deny but no entries in it. There is not a cron.allow.
I can run the script manually and it works..but through cron it never runs nor rights out a log.
cron has a skimpy PATH. As a result programs that run from the command line sometimes fail to run under cron because the program is not found and there is no error message on the screen.
If that is your problem then the easiest way to solve the problem is to use the full pathname for the command in the cron line.
use which command to find out the command's original path
Dear
some times what happen, that you need to use the absolute path of command in cron, then it gives you result.
suppose you want to use cat command then first check its absolute path with which command, e.g., whcich cat
it will give you /bin/cat
so now use this path in cron
and also try to set cronjobs with crontab -e command
it will make userwise cronjobs
some times what happen, that you need to use the absolute path of command in cron, then it gives you result.
suppose you want to use cat command then first check its absolute path with which command, e.g., whcich cat
it will give you /bin/cat
so now use this path in cron
and also try to set cronjobs with crontab -e command
it will make userwise cronjobs
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.