Cron Job Limitation


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Cron Job Limitation
# 1  
Old 06-12-2005
Cron Job Limitation

1. Is there any side effect if we change maximum number of jobs that can be run simultaneously for cron from default value of 100 to 400 or 500 in file "queuedefs" ?

2. What can be the effective way to check whether the cron job is already running or not, so that the next job should not start
e.g. 4,9,14,19,24,29,34,39,44,49,54,59 * * * ksh /usr/home/tmp/t.sh 10 0 11

Thank you in Advance.
# 2  
Old 06-17-2005
Please don't post questions in the faq queue. You need to pick an appropiate forum.
# 3  
Old 06-18-2005
1. Yes. Server load for one thing.

2. Put a check in the script. Either get it to create some sort of lock file (and remove it when it's finished - remember to set up traps), and then when it's executed see if the lock file exists, if it does, exit. You could also grep through ps output, etc... more than one way to skin this cat.

Cheers
ZB
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Cron job - Need to run Cron every quarter at particular time

Hi, 1) If some job supposed to run on 1st of every month at 7 AM In cron job when we have a blackout on the 1st ( i.e when 1st falls on a sunday ) how can we make the job run the next business day? 2) How can we run a job on 25th of every quarter 7 AM(jan,apr,jul,oct) And if 25th... (5 Replies)
Discussion started by: System Admin 77
5 Replies

2. Shell Programming and Scripting

Commented cron job -- cron monitoring

Hi I have a requirement to write a shell script,that will check the all commented job in cron job.Please help !! (2 Replies)
Discussion started by: netdbaind
2 Replies

3. Solaris

Cron job running even after cron is removed

Hi , I have removed a cron for particular user , but cron job seems to be running even after the cron entry is removed. The purpose of the cron was to sendmail to user ( it uses mailx utility ) I have restarted cron and sendmail service still user is getting mail alerts from the cron job. And... (4 Replies)
Discussion started by: chidori
4 Replies

4. Shell Programming and Scripting

Cron Job help

I need to write the cron job for the following scenario, Please help me out The CRON job runs sometime at night on Saturday and checks if there are more than eight files in the /PROCESSED folder. Any files over and above eight are deleted based on ascending order of date (eight most recent... (10 Replies)
Discussion started by: sandeep.dwivedi
10 Replies

5. Solaris

cron job starts new cron proccess

I run cron in solaris 10 zone. One cron job which syncing files to nfs mounted on container, creates after finishing another cron proccess(/usr/sbin/cron), and after 100 existing cron proccesses next cron job will not start. It's too weird for me, I'm not able to solve this problem. Theoretically... (3 Replies)
Discussion started by: ron76
3 Replies

6. UNIX for Dummies Questions & Answers

cron job

I created a php script i want to run as a cronjob. Where or how can I locate the cronjob file to add my script ? (3 Replies)
Discussion started by: dannyd
3 Replies

7. UNIX for Dummies Questions & Answers

CRON usage for CRON job

can anybody explain the usage of CRON for adding a cron job. please provide an example also for better understanding !!! Thanks (1 Reply)
Discussion started by: skyineyes
1 Replies

8. Shell Programming and Scripting

Something about a cron job

Hi, I am kind of new to Unix world and my job requires me to collect the information about the system calls a process is making. I need to write a script which gets into action every nite at 10:00 pm and runs tills 10:10 pm and does the following things: 1. Get the process id for a running... (3 Replies)
Discussion started by: Tyche
3 Replies

9. HP-UX

HP-UX 11i - File Size Limitation And Number Of Folders Limitation

Hi All, Can anyone please clarify me the following questions: 1. Is there any file size limitation in HP-UX 11i, that I can able to create upto certain size of file (say 2 GB) and not more then that???? 2. At max. how many files we can able to keep inside a folder???? 3. How many... (2 Replies)
Discussion started by: sundeep_mohanty
2 Replies

10. Shell Programming and Scripting

cron job

how do you schedule a job to run at the last day of the in a single crontab line for example if I put a crontab entry of 0 0 31 * * /path_of_my_script the above will only run if the last day of the months is 31, what happens if the last day of the month is 28 or 30. if I put a crontab... (4 Replies)
Discussion started by: hassan2
4 Replies
Login or Register to Ask a Question