The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM
Home Forums Register Rules & FAQ 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 !!


Other UNIX.COM Threads You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Can't login root account due to can't find root shell neikel AIX 2 01-30-2008 07:07 PM
how to access root priveliges if root password is lost wojtyla Linux 1 02-18-2005 02:24 AM
Run non-root script as root with non-root environment bubba112557 UNIX for Dummies Questions & Answers 2 12-02-2004 08:39 PM
Cron Sends mail to root on completion of job. skotapal UNIX for Dummies Questions & Answers 1 04-25-2003 01:27 PM
root cron was override w/ 3rd party software kupal UNIX for Dummies Questions & Answers 2 07-03-2002 08:55 PM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-03-2002
Registered User
 

Join Date: Jul 2002
Posts: 3
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
Question root cron

Hi guys,

It's me again, I have a scenario and I need your advice...We've install an agent in unix 2.8 and we schedule a job to be run once a week. I've notice that the cron job that we schedule on the console(Other computer, win2k prof.) to be run on the agent is added to the root cron(agent side,unix, loc. /var/spool/cron/crontabs/root). My question is, if the root cron reach its maximum capacity how the unix will handle the incoming cron job from the console. Is the Unix has a mechanism that, if the root cron is loaded already, it will create another root cron file and transfer all the old contents so it will have enough space for incoming cron jobs from the console.

Sorry if I ask too much question, please be bear with me...I'm still a novice...

Kups
Forum Sponsor
  #2 (permalink)  
Old 07-08-2002
RTM's Avatar
RTM RTM is offline
Hog Hunter
 
Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
I'm not sure of what you are asking but I think you are confusing going from console and changing root's crontab on a system versus going from another server (telnet, ssh....) to a system and changing root's crontab.

The crontab for root is a file (as you specified, /var/spool/cron/crontabs/root). To change the crontab for root, use the crontab -e command (read the man page on crontab first). The system will start some type of editor session - so it's like editing any other file at that point. You make changes, save, and exit the editor.

Quote:
if the root cron reach its maximum capacity how the unix will handle the incoming cron job from the console.
I have never heard of a maximum capacity for cron - I doubt you could reach it since those of us who have mistakenly created incorrect entries in cron which have created multiple processes in seconds can tell you, it won't be the crontab that gets to a maximum but the server - with runaway processes in endless loops. The most entries I have seen in a crontab to date: 171 (a DBA who has so much running in cron, I don't think he even needs to come to work anymore).
  #3 (permalink)  
Old 07-08-2002
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,215
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
Quote:
Originally posted by RTM
I have never heard of a maximum capacity for cron - I doubt you could reach it since those of us who have mistakenly created incorrect entries in cron which have created multiple processes in seconds can tell you, it won't be the crontab that gets to a maximum but the server - with runaway processes in endless loops. The most entries I have seen in a crontab to date: 171 (a DBA who has so much running in cron, I don't think he even needs to come to work anymore).
Modern versions of cron do have a limit. At least both HP-UX and Solaris do. And I have bumped into that limit many times. I have never heard on a limit of the number of entries in a crontab or a collection of crontabs. But there is a limit on the max number of sumultaneous cron jobs running. When you exceed this you get a message like this:
! c queue max run limit reached Sat Jul 6 04:00:00 2002
! rescheduling a cron job Sat Jul 6 04:00:00 2002
And yes, I copied that message from the log file on one of our servers.

The message is a little cryptic. If you look at your queuedefs file, you will probably find two lines, one for "at" jobs, and one for "batch" jobs. A third line that starts with a "c" could exist and it would be for cron jobs. In the absence of such a line, the defaults apply. That is 100, so you can have no more than 100 cron jobs running at once. But you can override this by editing your queuedefs file. And this is documented, see "man queuedefs".
Google UNIX.COM
Closed Thread



Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 08:38 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger

Search Engine Optimization by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102