From: Bill Verzal (BVerzal@KOMATSUNA.COM)
Date: Fri Apr 23 2004 - 12:17:27 EDT
Create a subroutine to check $? after each command.
BV
--------------------------------------------------------
"If everything is coming your way, then you are in the wrong lane"
Bill Verzal
AIX Administrator, Komatsu America
(847) 970-3726 - direct
(847) 970-4184 - fax
Bob.Kelley@BRINKS
INC.COM
Sent by: IBM AIX To
Discussion List aix-l@Princeton.EDU
<aix-l@Princeton. cc
EDU>
Subject
graceful script exit
04/23/2004 11:02
AM
Please respond to
IBM AIX
Discussion List
<aix-l@Princeton.
EDU>
If I have a script with does a number of things like tars, copy commands,
etc. What is the best way to generate a flag if a SINGLE command in the
script fails? In other words, if I'm thinking about this correctly, I want
to get a page when the script is finished, and one command didn't finish
correctly, even if some of the commands have succeeded. Thanks!
Bobby Kelley Jr.
972-877-5341
This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:17:51 EDT