Re: exit status code

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

 



On Tue, 2006-07-18 at 12:51 +0530, Kaushal Shriyan wrote:
> Hi ALL
> 
> I wanted to know the various exit status code
> For example
> #pwd ; echo $?
> /root
> 0
> 
> Here 0 means successful, and 127 means unsuccessful
> 
> Thanks and Regards
> 
> Kaushal
> 

In general:
$? == 0 means success. 
$? != 0 means error.

Gilboa


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux