The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
asking about return code
.
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
:
asking about return code
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
08-28-2007
vino
Supporter (in vino veritas)
Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,798
Quote:
Originally Posted by
naamas03
i want to ask in the script if $? equals 14
how shell is do that in the script
Code:
if [[ $? -eq 14 ]] ; then echo "Return status is 14" else echo "Return status is not 14" fi
vino
View Public Profile
Find all posts by vino
Find vino's past nominations received
Find vino's present nominations given