Script doubt.

From: <Sundar_Rajan_at_socgen-crosby.com>
Date: Thu, 02 Jul 1998 15:48:42 +0800

Dear All ,

     I would like to trap all errors in the script run. Please guide me as
to how to achieve this.
Following are the guidelines followed :
I have seen the "man ksh".

# Use subshell to re - direct all log output
(
   set -e
   {existing program}
) > $logfile 2>&1


I want an examples. Any help will be appreciated.

Thanks
Sunder
Received on Thu Jul 02 1998 - 11:16:09 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:38 NZDT