It is currently 15 Aug 2018 7:25


Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 25 Jul 2012 9:29 
Offline
Nouveau
Nouveau
User avatar

Joined: 14 Jan 2010 12:00
Posts: 58
Hello All,

I would like to execute a script from a DO_CMD in a ctmfw rules file. Is there a way to pass a success /failure code back the the ctmfw job so the job block will turn red (fail) if the script fails?

Best Regards


Top
   
 Post subject:
PostPosted: 26 Jul 2012 10:38 
If there is a crash in the commandfile,
you can look for the errorlevel.
To example:
if not errorlevel 0 goto error
.
.

and send a returncode
:error
"C:\Programme\BMC Software\CONTROL-M Agent\Default\EXE\_exit.exe" 5
exit


Regards
Klaus


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 2 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