It is currently 20 Aug 2018 4:36


Post new topic  Reply to topic  [ 8 posts ] 
Author Message
PostPosted: 04 Dec 2007 3:54 
Offline
Nouveau
Nouveau
User avatar

Joined: 03 Dec 2007 12:00
Posts: 8
Location: USA
Sorry, this is not a very complex question - I am just starting my implementation and the manual isn't clear.

Question on _exit code setting?
For setting up my batch job in windows -
Is it as simple as this:


@echo off
execute blah blah whatever
here I check if file exists, if not goto failure


rem Successful condition, file does exist
:success
_exit 0
rem this is a successful execution
goto end

rem Failure condition, file does not exist
:failure
_exit 1
rem this is a failure
goto end

:end

_________________
Image
willys@wowmail.com
_________________


Last edited by Willys on 07 Dec 2007 2:48, edited 1 time in total.

Top
   
 Post subject:
PostPosted: 06 Dec 2007 9:32 
Hi Willys,
So, what is the question?


Top
   
 Post subject:
PostPosted: 06 Dec 2007 4:08 
Offline
Nouveau
Nouveau
User avatar

Joined: 03 Dec 2007 12:00
Posts: 8
Location: USA
Sorry, I didn't make my question clear.

QUESTION: Is the code written above correct to pick up _exit code other than zero?

I sure would appreciate an example if my code is wrong.
I have a test job set up to fail and at a remote location I want it red flagged for notification.

I suspect ' _exit.exe ' isn't in the default path on my agent server.

I am very new to Control-M and appreciate this board, just much beyond my current level of understanding.

_________________
Image

willys@wowmail.com

_________________


Top
   
 Post subject:
PostPosted: 07 Dec 2007 8:26 
Offline
Nouveau
Nouveau
User avatar

Joined: 16 Oct 2006 12:00
Posts: 22
Location: Helsinki
Hi Willy,

that's a correct way to do it. Just make it sure that _exit.exe can be found the users path environments, usually C:\Program Files\BMC Software\CONTROL-M Agent\Default\EXE

Regards, Vilppu


Top
   
 Post subject:
PostPosted: 08 Dec 2007 4:56 
Offline
Nouveau
Nouveau
User avatar

Joined: 03 Dec 2007 12:00
Posts: 8
Location: USA
I have another related question ~

Is it necessary to have in the batch file the 'errorlevel' statement?

_________________
Image

willys@wowmail.com

_________________


Top
   
 Post subject: Windows Total Control
PostPosted: 02 Jul 2010 8:46 
Offline
Nouveau
Nouveau
User avatar

Joined: 02 Jul 2010 12:00
Posts: 1
Get preventive protection. Visit trustdownload. Windows Total Control


Top
   
 Post subject:
PostPosted: 10 Sep 2010 2:56 
Offline
Nouveau
Nouveau
User avatar

Joined: 10 Sep 2010 12:00
Posts: 1
Just din't get an idea what you were trying to say. How can this software help one ?

_________________
www.cyberls.com


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 8 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited
The site created by Franck YOT. Images, logo, content and trademarks about Control-M products are property of BMC Software.
All the comments are property of their posters. Images, logo, content and design are © copyright by Scheduler-Usage.com. All Rights Reserved