Re: OS Error number

From: Michael Schwendt (fedora_at_wir-sind-cool.org)
Date: 03/10/05

  • Next message: sandeep_at_vvdesign.com: "WINE Problem"
    Date: Thu, 10 Mar 2005 09:24:10 +0100
    To: General Red Hat Linux discussion list <redhat-list@redhat.com>
    
    

    On Thu, 10 Mar 2005 13:07:06 +0500, Muhammad Rizwan wrote:

    > Hello
    >
    > Is there any way that we get the number of OS error which we have
    > received.
    > Like i am adding user as:
    > useradd rizwan
    > useradd: user rizwan exists
    >
    > Now in this case i receive message that useradd: user rizwan exists, Is
    > there any way to get the number of this error.

    $? expands to the return code of the most recently run program

    -- 
    Fedora Core release 3 (Heidelberg) - Linux 2.6.10-1.770_FC3
    loadavg: 1.45 1.96 2.01
    -- 
    redhat-list mailing list
    unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
    https://www.redhat.com/mailman/listinfo/redhat-list
    

  • Next message: sandeep_at_vvdesign.com: "WINE Problem"

    Relevant Pages

    • Re: [fedora] Groups
      ... > I have read div docs but no one tells me how to add users to groups... ... * for new users: man useradd ... loadavg: 1.04 1.11 1.08 ... To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list ...
      (Fedora)
    • Re: Change Useradd Behavior
      ... useradd is a low level utility for adding users. ... Debian policy conformant UID and GID values, ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
      (Debian-User)
    • adduser and RPC Connection
      ... portmapper by default - which grml doesn't. ... Although I get the reason, I wasn't able to get the answer to my question -- ... is there any way to disable Debian's useradd from using NIS and making rpc ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
      (Debian-User)
    • Re: Default user groups
      ...  # useradd defaults file ... To unsubscribe or change subscription options: ... Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines ...
      (Fedora)
    • Re: Change Useradd Behavior
      ... 'useradd' rather than 'adduser'. ... preference for which you preferred to use but I could be wrong ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
      (Debian-User)