Home Man
Today's Posts

All Windows and DOS questions should go here as well. Discuss UNIX to Windows (Desktop or Server) here!

AutoSys Job not waiting for script to complete

Login to Reply

Thread Tools Search this Thread
# 1  
Old 11-27-2012
AutoSys Job not waiting for script to complete

I'm not sure if this is the right place to post this issue...but here goes...

I am converting a set of windows jobs from Control-M to AutoSys r11.3. The same command line is being executed in both systems. The Control-M job runs to compltion in about 1.5 hours, waiting for the entire batch script to complete before an exit code is returned.

When the same command line is executed in AutoSys...the script is kicked off, but the AutoSys job completes in under 60 seconds. The customer verifies that the backup that was kicked off IS actually running, but for some reason...the AutoSys job is not 'waiting' for the completion like the Control-M job does.

I don't know if I have provided enough information, but any guidance would be greatly appreciated.

- Angela
# 2  
Old 11-27-2012
Is it on windows or linux/solaris machine?

For each run of autosys, you will be having a unique run id. Check with autosys team in your firm. Ask them to check the logs for that job. (at particular time)

Autosys job should wait for the script completion. ( wait for the exit code from the script )
# 3  
Old 11-27-2012
The job is being submitted to a Windows server.
# 4  
Old 12-30-2012
Check batch file, autorem, stdout & stderr

Hi Angela,

Please check the batch file whether it is sending "exit 0" immediately after submitting the backup command.

Check the autorem if it's left behind post completion of job.

Also check the stdout & stderr file for some more info.

If all the above points are in it's place and working fine then please modify the batch file by mentioning "exit 1" at the end which will restrict the autosys agent from deletion of autorem file, try to track the job unique id submitted from autorem and check it's event type and it submission and reversal.

Thanks & Regards,
Pradeep Agarwal
Login to Reply

« Previous Thread | Next Thread »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Subprocess.popen() should write to log without waiting for process to complete ezee Shell Programming and Scripting 2 05-29-2018 01:49 AM
Waiting for a process to complete in shell script Prashanth19 Shell Programming and Scripting 3 05-28-2013 02:54 PM
SQL PLUS Command 'ACCEPT' is not waiting for user input with sh shell script little_wonder Shell Programming and Scripting 4 03-04-2010 02:07 AM
expect script hangs while waiting for the flag... sleepy_11 Shell Programming and Scripting 4 09-22-2009 01:46 AM
Timed out waiting for Autonegotiation to complete markoakley Solaris 1 07-08-2009 07:03 PM
BASH complete-filename & menu-complete together Mithu UNIX for Dummies Questions & Answers 0 01-06-2009 02:00 PM
Script Not waiting....plz help laxman123 UNIX for Advanced & Expert Users 9 06-18-2008 09:36 AM
parent not waiting until child complete executing another program through execl() vvaidyan Programming 4 05-16-2008 06:00 AM
Documentation and books on Autosys Job Control Tool from Autosys gram77 UNIX for Advanced & Expert Users 0 11-10-2007 05:24 AM
Script not waiting for user responce rdudejr Shell Programming and Scripting 3 07-05-2006 11:20 AM

All times are GMT -4. The time now is 04:29 PM.

Unix & Linux Forums Content Copyrightę1993-2018. All Rights Reserved.
Show Password