The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
To Stop at error
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
To Stop at error
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
11-24-2008
Ikon
Registered User
Join Date: Jul 2008
Location: Phoenix, Arizona
Posts: 669
$? - stored exit status of previous command.
So check if $? = 0 run next script else exit and display error or what ever.
Ikon
View Public Profile
Visit Ikon's homepage!
Find all posts by Ikon
Find Ikon's past nominations received
Find Ikon's present nominations given