Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Unix (http://www.go4expert.com/forums/unix-forum/)
-   -   swremove unsuccessful case handling (http://www.go4expert.com/forums/swremove-unsuccessful-handling-t9618/)

rag84dec 27Mar2008 09:44

swremove unsuccessful case handling
 
i am using the command "swremove productname".... How can i check the unsucceful condition?.... i want to say "if unsuccessful display that message to the user and exit"....

Can anu one help me??.... i am coding in this script for the first time so please dont mind...

THanks

pradeep 27Mar2008 10:24

Re: swremove unsuccessful case handling
 
$? contains the exit status, 0 means normal termination, any value greater than 0 means abnormal termination.


All times are GMT +5.5. The time now is 08:48.