Re: OS Error number

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux