![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| problem with cron job | solne | SUN Solaris | 7 | 01-18-2008 05:57 PM |
| Cron problem | tez | UNIX for Dummies Questions & Answers | 3 | 10-27-2006 02:48 PM |
| Problem with cron | jhansrod | AIX | 2 | 11-25-2005 01:30 PM |
| cron problem | VPN | UNIX for Dummies Questions & Answers | 2 | 04-16-2004 03:27 AM |
| Cron Problem | Raiden | Shell Programming and Scripting | 4 | 11-16-2003 04:00 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
||||
|
||||
|
cron problem!
The cron daemon on one of my HP boxes is giving the following error:
Quote:
Quote:
The /var/adm/cron/queuedefs file does not have a line for cron, so it should be picking up the default value. But in this post, Perderabo says that the default value is also 100. If that is the case, have I already reached the maximum? And if so, do I have any choice, other than having a cronjob that restarts cron every day or so? -EDIT: Here's the uname -a o/p: HP-UX xxxxx B.11.11 U 9000/800 |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
Quote:
You need to look at the scripts and scheduling of the cron jobs - make sure that there is a clean exit so you don't build up to 100 jobs. The system DOES reschedule - once the max of 100 jobs goes down, it will start running all the jobs waiting (unless it hits 100 again). It's actually a pretty good way of doing in in my opinion. Keeps my favorite DBA from killing the system every day! |
|
#3
|
||||
|
||||
|
Look up the pid of the cron process. You will have 100 processes with that number as the ppid. This not a matter of a clean exit. They are still running.
Or maybe you have too much stuff in another queue? Notice the language on "man queuedefs": "the total number of jobs that can be run on all the queues is limited to 100". I have never really known whether or not to believe that sentence. |
|
#4
|
||||
|
||||
|
Thanks for the inputs. We did move a few cronjobs around, and I added a line in the queuedefs file: c.100j2n60w. One question though: does a script count as one 'job'? So if I have 5 find commands running through cron and I put them in a single script, I will have reduced the number of jobs by 4 right?
|
|
#5
|
||||
|
||||
|
cron is waiting for its child process to finish. It doesn't matter what that child does including running other processes. Want to cheat? Write a cron script that launches a second script in the background and immediately exits.
#! /usr/bin/ksh /path/to/real/script & exit 0 I have never tried this, but I'm guessing it will fake cron out. |
||||
| Google The UNIX and Linux Forums |