Re: graceful script exit
From: Bill Verzal (BVerzal_at_KOMATSUNA.COM)
Date: 04/23/04
- Previous message: John Jolet: "Re: graceful script exit"
- In reply to: Bob.Kelley_at_BRINKSINC.COM: "graceful script exit"
- Next in thread: Taylor, David: "Re: graceful script exit"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 23 Apr 2004 11:17:27 -0500 To: aix-l@Princeton.EDU
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
- Previous message: John Jolet: "Re: graceful script exit"
- In reply to: Bob.Kelley_at_BRINKSINC.COM: "graceful script exit"
- Next in thread: Taylor, David: "Re: graceful script exit"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|