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
Automation script for email alert when a job get complete with status successful. Rehan Ahmad UNIX for Beginners Questions & Answers 1 12-20-2016 12:44 PM
To run ksh script via autosys job without asking password for file transfer maheshbabu UNIX for Dummies Questions & Answers 6 02-20-2014 02:18 PM
Waiting for a process to complete in shell script Prashanth19 Shell Programming and Scripting 3 05-28-2013 02:54 PM
Please help me to develop this script for autosys job pradipta_pks Shell Programming and Scripting 3 07-30-2012 02:52 AM
Shell script - Finding Autosys job status venkatesht UNIX for Dummies Questions & Answers 1 01-10-2012 04:28 AM
Timed out waiting for Autonegotiation to complete markoakley Solaris 1 07-08-2009 07:03 PM
autosys job name in the called script ysrinu Shell Programming and Scripting 1 06-09-2008 08:53 PM
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

All times are GMT -4. The time now is 01:21 AM.

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