Solved

cron log

Posted on 2004-10-10
4
261 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 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

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.…
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

717 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