?
Solved

cron log

Posted on 2004-10-10
4
Medium Priority
?
275 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Suggested Courses

650 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