![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| 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 !! |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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 |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
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.
|
|
#3
|
||||
|
||||
|
look into 'fuser'
|
||||
| Google The UNIX and Linux Forums |