Unix/Linux Go Back    


Windows & DOS: Issues & Discussions 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

Windows & DOS: Issues & Discussions


Closed    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 11-27-2012
ajomarquez ajomarquez is offline
Registered User
 
Join Date: Nov 2012
Last Activity: 2 January 2013, 1:37 PM EST
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
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
Sponsored Links
    #2  
Old Unix and Linux 11-27-2012
itkamaraj's Unix or Linux Image
itkamaraj itkamaraj is offline Forum Advisor  
Registered User
 
Join Date: Apr 2010
Last Activity: 14 September 2017, 8:59 PM EDT
Posts: 3,148
Thanks: 45
Thanked 698 Times in 674 Posts
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 )
Sponsored Links
    #3  
Old Unix and Linux 11-27-2012
ajomarquez ajomarquez is offline
Registered User
 
Join Date: Nov 2012
Last Activity: 2 January 2013, 1:37 PM EST
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
The job is being submitted to a Windows server.
    #4  
Old Unix and Linux 12-30-2012
pradeep84in pradeep84in is offline
Registered User
 
Join Date: Dec 2012
Last Activity: 25 September 2017, 10:35 AM EDT
Location: Bengaluru / Kolkata, India
Posts: 15
Thanks: 5
Thanked 0 Times in 0 Posts
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
Sponsored Links
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
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
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 12:51 AM.