?
Solved

cron log

Posted on 2004-10-10
4
Medium Priority
?
266 Views
Last Modified: 2013-12-16
Hi,

I m using Redhat 8 and trying to find out why one of my jobs in cron.daily doesnt work. Therefore i checked /var/log/cron but i cannot find the name of my job. I have another job in cron.daily and i am sure it was run. But the working job is also not found in the log. I could only see all this in the log:

Oct 10 04:40:00 www CROND[17143]: (root) CMD (/usr/bin/mrtg /etc/mrtg/mrtg.cfg)
Oct 10 04:40:00 www CROND[17146]: (mailman) CMD (/usr/bin/python -S /var/mailman/cron/gate_news)
Oct 10 04:40:00 www CROND[17145]: (mailman) CMD (/usr/bin/python -S /var/mailman/cron/qrunner)
Oct 10 04:40:00 www CROND[17144]: (root) CMD (/usr/lib/sa/sa1 1 1)
Oct 10 04:41:00 www CROND[17149]: (mailman) CMD (/usr/bin/python -S /var/mailman/cron/qrunner)

Not too sure why my running/not running jobs are not inside the log.

Thanks
0
Comment
Question by:pajiao
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 17

Accepted Solution

by:
owensleftfoot earned 160 total points
ID: 12274738
Dont know why it isnt showing up but the most common reason for cron jobs not working is not supplying the full path within scripts. Cron doesnt run with the same environment as you do when you tryout your script on the command line. Your path may include program /usr/local/sbin/xyz - crons will not. There fore within any script you use calling this program you will have to actually put /usr/local/sbin/xyz instead of just xyz. Same with the path to the script itself within crontab.
0
 

Author Comment

by:pajiao
ID: 12277246
I did use the full path. It was workin before but suddenly stopped. And i could see anything from the log.
0
 

Author Comment

by:pajiao
ID: 12282949
Sorry, correction... i did use the full path, it was working before but stopped suddenly and i couldnt see anythig from the log
0
 

Author Comment

by:pajiao
ID: 12520657
Hi, i would like to close the question since no one can give me a satisfied answer
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month9 days, 13 hours left to enroll

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question