View Single Post
  #3   (View Single Post)  
Old 16th July 2008
stukov's Avatar
stukov stukov is offline
Real Name: Jean-Michel Philippon-Nadeau
Package Pilot
 
Join Date: May 2008
Location: Sherbrooke, Qc, Canada
Posts: 167
Default

Thanks for the reply scottro.

I don't think the "path" variable can be the cause here, as the script was working last week. I'd rather suspect an update caused the crash. I have tried removing and installing cron back from Yum. This gave no success.

The problem is not with the jobs of only one users. It's all jobs that are not working. As if cron ran and checked the crontabs but did not ran them at all. Here is my /etc/crontab:
Code:
# cat /etc/crontab 
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/

# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly
I followed your suggestion and tried cron with a simple operation. I added this line to my /etc/crontab:
Code:
50 * * * * root /bin/ls / > /tmp/ls.txt
Running the command by hand created the file with the proper output, but cron gave no result again.

Any ideas?
__________________
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction."
Reply With Quote