Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Does CRONTAB execute entries seqentially or concurrently? 1

Status
Not open for further replies.

dwilliams1963

IS-IT--Management
Oct 29, 2003
1
US
I'm running AIX 4.3.3 and have some CRON jobs set up. Some of the entries have the same times set on them, e.g.:

01,11,21,31,41,51 * * * * /bin/csh -c 'source /usr/sybase/SYBASE.csh;/usr/dss/bi
n/sicuhmedscript'
01,11,21,31,41,51 * * * * /bin/csh -c 'source /usr/sybase/SYBASE.csh;/usr/dss/bi
n/ccuhmedscript'
03,13,23,33,43,53 * * * * /bin/csh -c 'source /usr/sybase/SYBASE.csh;/usr/dss/bi
n/a2hmedscript'
3,13,23,33,43,53 * * * * /bin/csh -c 'source /usr/sybase/SYBASE.csh;/usr/dss/bin
/c3hmedscript'

Question: Will ccuhmedscript have to wait for sicuhmedscript to complete before it will execute?

As a followup question, is there a log file somewhere that shows when crontab entries are executed?

Thanks in advance for your assistance.
 
The entries will not wait for the first one to finish before executing the second one. If you want that to happen, you should call the next script from the first script, and so on.

Check the mail for the user whose cron is executing the command. That will give you a time stamp of when the script was kicked off.

You could also set up some sort of log file within the script, by running a date command and sending it to a file, along with an echo of what is happening.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top