Solved

cron log

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

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…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

758 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now