AutoSys Job not waiting for script to complete

Login or Register to Reply

Thread Tools Search this Thread
# 1  
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  
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 )
# 4  
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 or Register to Reply

Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Waiting for a process to complete in shell script
Hi, I need to initiate a process script which will start and do some processing and then shuts down. Then i need to other verifications. But the the process takes around 25 to 3o minutes. One thing i can monitor the nohup.out file for this process where i can wait for shutting down statement to...... Shell Programming and Scripting
Shell Programming and Scripting
Please help me to develop this script for autosys job
:wall:Hi All, I want to build script to force start the list of child jobs under a box. I prepared this below script, but this script need to some bug fix at run time. Please help me to to develop this script. Please let me know if any thing require for this script. Advance thank for all.. ...... Shell Programming and Scripting
Shell Programming and Scripting
Shell script - Finding Autosys job status
Hi, There are 2000 jobs in the list and i need to draw their status. I put all the jobs in the list and trying to read one by one from the list and to find out the status. Help me out in correcting the script. #!/bin/csh for a in $(cat Jobs_List.txt); do source <<path>> autorep -j $a...... UNIX for Dummies Questions & Answers
UNIX for Dummies Questions & Answers
autosys job name in the called script
Hi, i have an autosys job 'AUTJOBA' that calls a script Now, inside the script i would like to know the autosys job that kicked off this script. When AUTJOBA runs, will it set an environmental variable for this shell session that can be accessed within this script? ...... Shell Programming and Scripting
Shell Programming and Scripting
Documentation and books on Autosys Job Control Tool from Autosys
My project uses Autosys. I am new to this product and I don't know where to start from. Q1. Please provide me the link where I can get Autosys documentation Q2. Please refer a good book on Autosys. (Beginner/Intermediate Level)... UNIX for Advanced & Expert Users
UNIX for Advanced & Expert Users