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
Solved

cron log

Posted on 2004-10-10
4
256 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
  • 3
4 Comments
 
LVL 17

Accepted Solution

by:
owensleftfoot earned 80 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

839 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