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

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Similar Threads 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 02: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 01: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 03:18 PM
Autosys Job: Job did not start jnrohit2k UNIX for Advanced & Expert Users 0 11-22-2013 09:42 PM
Waiting for a process to complete in shell script Prashanth19 Shell Programming and Scripting 3 05-28-2013 03:54 PM
Waiting a job to finish lengolass Shell Programming and Scripting 5 04-07-2013 03:11 PM
I want a script to view the complete log information of data stage job from UNIX IBM AIX. victory Shell Programming and Scripting 7 01-04-2013 07:58 AM
Please help me to develop this script for autosys job pradipta_pks Shell Programming and Scripting 3 07-30-2012 03:52 AM
Shell script - Finding Autosys job status venkatesht UNIX for Dummies Questions & Answers 1 01-10-2012 05:28 AM
Autosys Job. diehard UNIX for Dummies Questions & Answers 2 01-19-2011 01:57 PM
autosys job configuration for job failure. sangea Shell Programming and Scripting 2 09-23-2010 07:40 AM
Timed out waiting for Autonegotiation to complete markoakley Solaris 1 07-08-2009 08:03 PM
autosys job name in the called script ysrinu Shell Programming and Scripting 1 06-09-2008 09:53 PM
parent not waiting until child complete executing another program through execl() vvaidyan Programming 4 05-16-2008 07:00 AM
Documentation and books on Autosys Job Control Tool from Autosys gram77 UNIX for Advanced & Expert Users 0 11-10-2007 06:24 AM
All times are GMT -4. The time now is 06:29 PM.

Unix & Linux Forums Content Copyright 1993-2018. All Rights Reserved.
UNIX.COM Login
Username:
Password:  
Show Password





Not a Forum Member?
Forgot Password?