You could at the start of the shell write an 'in-process flag' (simply
create file with a specific name).

As the final step in the process, when completed successfully, delete that
file.
Then .....

If [exists(file)] - you know the process failed.


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ralph Melia
Sent: Wednesday, July 21, 2004 7:39 PM
To: [EMAIL PROTECTED]
Subject: [U2] [UD] Returning data to ksh

I'm working on a project that involves integrating our (UD 5.2 on AIX)
programs into a job stream via ksh scripts. And I need a way of
communicating back to the calling shell whether the unidata process
(program) completed successfully or not. The relevent part of the shell
would look something like:

$UDTBIN/udt program parameters

if [ it failed ]; then do something


I'm thinking that there must be a simple solution, but I'm drawing a blank.
Help!

Thanks,

Ralph
-------
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to