1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

swremove unsuccessful case handling

Discussion in 'Unix' started by rag84dec, Mar 27, 2008.

  1. rag84dec

    rag84dec New Member

    Joined:
    Jul 17, 2007
    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    0
    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
     
  2. pradeep

    pradeep Team Leader

    Joined:
    Apr 4, 2005
    Messages:
    1,646
    Likes Received:
    86
    Trophy Points:
    0
    Occupation:
    Programmer
    Location:
    Kolkata, India
    Home Page:
    $? contains the exit status, 0 means normal termination, any value greater than 0 means abnormal termination.
     

Share This Page