|
RE: returning result from exec_program TEC 3.9: msg#00489sysutils.tivoli.tme10
I had some issues with exec_program_local (TEC 3.8 FP02) as well as other methods that I tried .... So at the end I ended up with handling this issue directly in the script (tec_task). Basically, I am checking for the result of the execution (0 or non-zero result of the execution) and sending it back to TEC via another event where I reference back date_reception and event_handle (to find original event upon which the task was spawned). Date_reception and event_handle are variables passed to exec_task. Maybe not very efficient but it works ... David "john willis" <john_willis@gulf soft.com> To Sent by: <tme10@xxxxxxxxxxxxxxxx> owner-tme10@lists cc .us.ibm.com Subject RE: [tme10] returning result from 23/02/2005 10:44 exec_program TEC 3.9 Please respond to tme10 Can't do it with exec_program/exec_task they are run in a different process (TEC_Task). You have two options: 1) Use the undocumented shell predicate (not recommended) 2) Use exec_program_local and it will generate another event when the program completes with return code and feedback information. Then in another rule process the TEC_Task event that is sent back in. John Willis Gulf Breeze Software www.gulfsoft.com OpenESM Project www.sourceforge.net/projects/gulfsoft -----Original Message----- From: owner-tme10@xxxxxxxxxxxxxxxx [mailto:owner-tme10@xxxxxxxxxxxxxxxx] On Behalf Of Hawkett, David Sent: Wednesday, February 23, 2005 4:25 AM To: tme10@xxxxxxxxxxxxxxxx Subject: [tme10] returning result from exec_program TEC 3.9 Hi List, Is it possible, and if so could somebody give me some pointers on the predicates and structure to use to be able to return a result from a perl script, triggered via exec_program, back to the rule so that the rule can subsequently proceed dependent on the result returned via the script ? many thanks Dave ____________________________________________________________ CONFIDENTIALITY This e-mail and any attachments are confidential and also may be privileged. If you are not the named recipient, or have otherwise received this communication in error, please delete it from your inbox, notify the sender immediately, and do not disclose its contents to any other person, use them for any purpose, or store or copy them in any medium. Thank you for your cooperation. ____________________________________________________________ |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Memo: RE: wadminep [ep_name] send_file: 00489, Jason Shamroski |
|---|---|
| Next by Date: | RE: Memo: RE: wadminep [ep_name] send_file: 00489, Loren Cain |
| Previous by Thread: | RE: returning result from exec_program TEC 3.9i: 00489, john willis |
| Next by Thread: | RE: returning result from exec_program TEC 3.9: 00489, Hawkett, David |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |