Cron Skips Execution


 
Thread Tools Search this Thread
Operating Systems HP-UX Cron Skips Execution
# 1  
Old 09-09-2005
Error Cron Skips Execution

Hi All,
I got a very strange problem, i have created a cron schedule that will run a programme once in every 12 mins, like

04,16,28,40,52 * * * * /myf/startProcessA 1> &-

Some time the cron skips the execution such as 04,28 instead of executing at 16 mins. it starts execution at 28, i suspect it may be a cron related problem. Can anybody help me in this regard

Thanks
Nag
# 2  
Old 09-12-2005
Have you tried with another script using the same cron schedule, let's say something very simple. Maybe this doesn't have anything to do with cron. It could be something in your script, difficult to tell without seeing your script.
# 3  
Old 09-13-2005
CPU & Memory

Thanks for your reply, the cron script is having more than 100 schedule entries (scripts), the cron execution skips occassionaly (i could not find out when the process will skip).

I have tried to execute the same script with another cron with less number of schedules (15) , then no problem in execution (means no skips)

Is there any limitation on the "No. of schedules" of cron????

Last edited by nag_sundaram; 09-13-2005 at 08:33 AM.. Reason: More Info
# 4  
Old 09-13-2005
cron does have a limit of how many jobs it can run at one time (100 executing jobs is the limit on Solaris). Just because you have 100 different entries does not mean you have reached that limit unless each one runs every minute.

Check your cron log for errors - possibly /var/cron/log. The only times I have seen issues with it was when a user changed their script and caused it to run longer than needed - cron reached it's limit and the user blamed cron instead of noting that he had over 100 jobs running on the server of the same script.
# 5  
Old 10-24-2005
Quote:
Originally Posted by RTM
cron does have a limit of how many jobs it can run at one time (100 executing jobs is the limit on Solaris). Just because you have 100 different entries does not mean you have reached that limit unless each one runs every minute.

Check your cron log for errors - possibly /var/cron/log. The only times I have seen issues with it was when a user changed their script and caused it to run longer than needed - cron reached it's limit and the user blamed cron instead of noting that he had over 100 jobs running on the server of the same script.

Hi,
Can u provide me a link where I can find more infromation on solaris limit of 100 Jobs....

Thanks for this valuable info
# 6  
Old 10-24-2005
See "man queuedefs".
# 7  
Old 10-25-2005
Quote:
Originally Posted by Perderabo
See "man queuedefs".
Thanks.....Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Execution problem with Cron

Hi, I'm unable to understand why the grep command in cronjob works intermittently Expected output: Grep command to look for a particular string with today's date and exit from infinite while loop else it must sleep for 5 mins I'm using the following statement in my shell script, the... (9 Replies)
Discussion started by: charlie87
9 Replies

2. UNIX for Dummies Questions & Answers

Execution problem with Cron: Script works manually but not w/Cron. Why?

Hello gurus, I am making what I think is a simple db2 call from within a shell script but I am having difficulty producing the desired report when I run the script shown below from a shell script in cron. For example, my script and the crontab file setup is shown below: #!/bin/ksh db2... (3 Replies)
Discussion started by: okonita
3 Replies

3. UNIX for Dummies Questions & Answers

Execution Problems with Cron

Good evening, ive got this cron to be run: if i run this manually it doesnt work,it takes me to the prompt again /export/app/CO/opge/scr/Informe_parametros_colombia.ksh >/dev/null 2>&1 here is the code fragment: coopge@coopge: opge PRODUCCION>more... (1 Reply)
Discussion started by: alexcol
1 Replies

4. Shell Programming and Scripting

Execution problems with cron

I am new to creating crontab file , i just wrote below (40 19 * 3 * /root/maths/practisecron.sh), the script just prints "Hi". When ever i save the above file i am getting this . # crontab -e crontab: installing new crontab Can you please check where it went wrong.. (1 Reply)
Discussion started by: vkiyv05
1 Replies

5. UNIX for Dummies Questions & Answers

Execution Problems with Cron

Hi friends, today i created a cron job , registered the crontab file associated but dont know why the cron is not getting executed at the right time.?? content of Crontab file : 21 15 * * * /subrat/myt i wanted to execute the script myt on 15:21 PM of everyday. the script myt... (2 Replies)
Discussion started by: paras.oriental
2 Replies

6. AIX

Execution Problem with Cron

Guys, I am beginer in unix. There is a cobol file with fixed-width. I want to read the total Line, Word and character count. I have tried with wc-l unix command, but it returns '0'. Please advice me the correct command/steps to get the record count. Thanks in advance. (4 Replies)
Discussion started by: vibhar
4 Replies

7. UNIX and Linux Applications

Execution Problems with Cron

Hi all!! I have a nerve-wracking concept (probably for me!!) which is not understood. My crontab entry looks this way. 33 09 22 3 * /home/myexp.sh "Bgp4 ALL" >/dev/null 2>&1 But cron gets started occasionally. Sometimes it does. Sometimes it does not. And sometimes it hangs in the middle (I... (1 Reply)
Discussion started by: dhivyasuresh
1 Replies

8. Programming

execution problems with cron

how to store a date into file? and how we can access date from the file? ---------- Post updated at 06:09 AM ---------- Previous update was at 06:08 AM ---------- how we can store date in file? (1 Reply)
Discussion started by: causalmodi777
1 Replies

9. HP-UX

Manual vs Cron execution in HP-UX

Below is a simple script that will find the path were the perl command reside. ========================= #!/usr/bin/sh nPerl=`which perl 2>>/dev/null|grep -v "no perl"` if ; then echo "No Perl application exist..." else echo "Existing at $nPerl" fi ========================= When I... (2 Replies)
Discussion started by: padi
2 Replies

10. Solaris

cron execution

Hi, Here is the code snippet when executing on the command line it does execute smoothly, but while i place this on cron it doesnt run. Can anybody suggest where the problem in cron is.? #!/usr/bin/ksh home_dir="/export/home/scripts/MonitorScripts" ThresholdLimit=5 touch... (6 Replies)
Discussion started by: rameek20
6 Replies
Login or Register to Ask a Question