Re: exit status code

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

 



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

*GENERALLY*, 0 means success and non-zero an error.  But remember, every
exit code is just a programmer's choice for whatever command you're using;
there's no enforcement other than by convention.

If you're going to use an exit code from a command, take a look at the
man page and see what it's documented to mean.

Cheers,
--
	Dave Ihnat
	President, DMINET Consulting, Inc.
	dihnat@xxxxxxxxxx


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

  Powered by Linux