LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-10-2004, 09:33 AM   #1
gstasica
LQ Newbie
 
Registered: Jul 2004
Posts: 10

Rep: Reputation: 0
Problem with crone - dangling job


Hi,

I've created a small script in /etc/cron.hourly but after one month of working it stopped to work. There was no info in any log. !! Finally I've found my dangling script in processes. Killed and right now it's working. Below is my dangling process. My question is why I had no error in logs for so many days. OK I can believe the script had problem to complete but why cron didn't attempted to run it at the next hour?
user@mach>ps -auxf
root 12754 0.0 0.0 1692 624 pts/115 S+ 15:30 0:00 \_ grep cron
root 3558 0.0 0.0 1584 704 ? Ss Sep29 0:00 /usr/sbin/cron
root 15563 0.0 0.0 2312 1004 ? Ss Nov01 0:00 \_ /bin/sh -c test -x /usr/lib/cron/run-crons && /usr/lib/cron/run-crons >/dev/null 2>&1
root 15564 0.0 0.1 2316 1140 ? S Nov01 0:00 \_ /bin/bash /usr/lib/cron/run-crons
root 15579 0.0 0.0 2312 992 ? SN Nov01 0:00 \_ /bin/bash /etc/cron.hourly/mysql-ms2k-repl

My /etc/crontab is as follows

-*/15 * * * * root test -x /usr/lib/cron/run-crons && /usr/lib/cron/run-crons >/dev/null 2>&1
59 * * * * root rm -f /var/spool/cron/lastrun/cron.hourly
14 4 * * * root rm -f /var/spool/cron/lastrun/cron.daily
29 4 * * 6 root rm -f /var/spool/cron/lastrun/cron.weekly
44 4 1 * * root rm -f /var/spool/cron/lastrun/cron.monthly
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
scp problem in cron job andreolira Linux - General 9 09-08-2008 04:27 PM
cron job problem graziano1968 Linux - Software 7 08-27-2005 12:41 AM
problem in cron job setting gauravdream Linux - General 1 02-23-2004 12:08 AM
smb printer job problem lynchmob09 Linux - Networking 4 02-04-2004 05:50 PM
Cron Job Problem Corellon Linux - Software 4 08-12-2003 03:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration