The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
cron jobs dannyd Linux 1 02-26-2008 02:35 AM
cron jobs not run robertsnoog Linux 4 02-13-2007 09:24 AM
Cron Jobs Remi SUN Solaris 2 01-03-2007 04:12 PM
running cron jobs sharanbr UNIX for Dummies Questions & Answers 3 03-30-2006 05:41 AM
running cron jobs ted Shell Programming and Scripting 1 05-19-2004 09:35 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 04-21-2006
Registered User
 

Join Date: Oct 2005
Posts: 86
How to tell which cron jobs are still running?

I have some cron jobs that are taking a might long time. That is because they are screen scrapers and I inserted an extra long pause (10 minutes between screens) to be extra polite and minimize network traffic. I was going to have them run once a day but now I'm thinking once a week.

How do I tell when a cron job has completed? I've been looking at the logs but they are very large and sometimes exceed emac's maximum capacity.

How can I insert logic to prevent a new instance of the cron job starting before the old one is finished?

Thanks,
Siegfried
Reply With Quote
Forum Sponsor
  #2  
Old 04-21-2006
DogDay's Avatar
Registered User
 

Join Date: Jun 2005
Location: /dev/null
Posts: 83
create a file in the /tmp directory and have your script check for it. If it is there then dont start. If it is not there then start and delete the file when you're done.
Reply With Quote
  #3  
Old 04-21-2006
vgersh99's Avatar
Moderator
 

Join Date: Feb 2005
Location: Boston, MA
Posts: 3,003
look into 'fuser'
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 11:47 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0