The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
how to get return code in one line
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Directory
Register
Forum Rules
FAQ
Contribute
Members List
Search
Today's Posts
Mark Forums Read
Thread
:
how to get return code in one line
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
09-13-2007
porter
Registered User
Join Date: Jan 2007
Posts: 2,965
The one thing that is hard to do is make shell look nice.
The closest you can get is
Code:
if do_my_thing .... then echo it worked fi
but you don't get the exit code into a variable.
porter
View Public Profile
Find all posts by porter