Limit on Number of Cron Jobs Running on one Account


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Limit on Number of Cron Jobs Running on one Account
# 8  
Old 08-31-2011
There is a limit on the number of jobs that can run at one time. Example: Solaris has queudefs, which sets the maximum number of simultaneous at and cron jobs.

Frank is right. You can create as many different cron jobs as you like.

Corona is also more than correct. Maintaining 50 cron jobs in separate scripts is a guarantee that you will mess up somewhere. And not catch it for a long time.

It actually sounds like you need a job control app, rather than cron. By job control I mean an application that submits each job depending on time/date/day of week, previous jobs status, and specified parameters, etc. Not cron.

If you don't get what I mean have a look at openjcs
OpenJCS (Job Control System) | Download OpenJCS (Job Control System) software for free at SourceForge.net
# 9  
Old 08-31-2011
Quote:
Originally Posted by dude2cool
Isn't the limit on number of cron jobs related to maxuprc (maximum number of process per user?)
Not really, it's not cron that's limiting you...

---------- Post updated at 12:09 PM ---------- Previous update was at 12:04 PM ----------

Quote:
Originally Posted by Pramodini Rode
[SIZE=3][FONT=Calibri]I am not comfortable running in one script because in case the job fails, having separate logs for each of my jobs makes it easier to debug and pinpoint the issue.
So save separate logs. You don't need cron to do that.

Code:
exec 1>/path/to/job1log
exec 2>/path/to/job1err

do_stuff

exec 1>/path/to/job2log
exec 2>/path/to/job2err

do_stuff

...

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

cron jobs not running during certain window

Hi unix.com, I'm currently experiencing a problem on one of our servers at work where between the hours of approx. 1:00 AM and 2:0 AM no jobs scheduled through cron run. Now, in the cron logs I do see that all jobs are launched and I'm not seeing any errors anywhere - but - none of the jobs... (2 Replies)
Discussion started by: tunachamp
2 Replies

2. Solaris

cron jobs not running from sudo

Hi, I am logging into sun solaris unix box as asood user.Then sudo su_appssu and scheduled my cron jobs.The user appssu is there In the /etc/cron.d/cron.allow . I do not understand why the jobs are not kicking by cron. Do I need to enter directly as appssu ? Regards Megh (10 Replies)
Discussion started by: megh
10 Replies

3. Shell Programming and Scripting

Cron Jobs Still Running In Backgound

Hi guys, I've got a few cron jobs ... porblem is they are running as intended but some of them just tend to stay there in sleeping mode for quite some time ... sometimes even days ... for example when i run the ps command i can see that some are still there although the same script had run many... (6 Replies)
Discussion started by: King Nothing
6 Replies

4. OS X (Apple)

cron jobs running, but not...

I have a cron job set up to run a script on my Leopard Server every night. The job is set up as root, and when I run the script manually, it runs fine. The problem is that it is not doing anything when it runs at night. In the cron log, it says it ran, but did not output the results to the file it... (3 Replies)
Discussion started by: yodomino6
3 Replies

5. UNIX for Advanced & Expert Users

Seriously, cron jobs not running.

Before I get a million and one suggestions on all the things that could be wrong with my scripts - let me assure everyone that this is not the issue. i have a RH EL ES4 server that stopped running all cron jobs except hourly, daily, weekly. This has affected all users including root. No... (7 Replies)
Discussion started by: bill_k_Lopez
7 Replies

6. Shell Programming and Scripting

limit the number of jobs to run.

i just want to get the BackGround status and limit the number of jobs to run the at a time. can i able get the back ground exit status ? that i code below. can jobs -l limit the number of jobs to run ? total is this script looks fine ? cat run_job.ksh #!/usr/bin/ksh... (0 Replies)
Discussion started by: GrepMe
0 Replies

7. Shell Programming and Scripting

background jobs exit status and limit the number of jobs to run

i need to execute 5 jobs at a time in background and need to get the exit status of all the jobs i wrote small script below , i'm not sure this is right way to do it.any ideas please help. $cat run_job.ksh #!/usr/bin/ksh #################################### typeset -u SCHEMA_NAME=$1 ... (1 Reply)
Discussion started by: GrepMe
1 Replies

8. UNIX for Dummies Questions & Answers

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... (2 Replies)
Discussion started by: siegfried
2 Replies

9. UNIX for Dummies Questions & Answers

running cron jobs

I would like to add a job using cron. I have following questions - cron jobs are launched using what login-id e.g. is the script launced using my login-id - In which directory would the cron jobs be launched ? - where do the environment variables required in the script being lauched come... (3 Replies)
Discussion started by: sharanbr
3 Replies

10. Shell Programming and Scripting

running cron jobs

Hi, I'm new to cron and I would like to know if this cron entry looks right. Every monday to friday, at 9:15 AM execute the script called done_att.sh Every monday to friday, at 3:15 PM execute the script called start_att.sh 15 09 * * /u54/jobs/done_att.sh 45 15 * *... (1 Reply)
Discussion started by: ted
1 Replies
Login or Register to Ask a Question