Re: [Integrit-users] exit status
Brought to you by:
ecashin
From: Gary E. M. <ge...@re...> - 2001-10-26 19:43:14
|
Yo Ed! On 26 Oct 2001, Ed L Cashin wrote: > Non-zero exit status is only for error conditions. Errors are > problems that prevent the software in question from doing its job and > that cannot be overcome by the software itself. Not true, This is NOT the UNIX way. I suggest you check out the man pages for "diff", "cmp", etc... Diff: An exit status of 0 means no differences were found, 1 means some differences were found, and 2 means trouble. cmp: The cmp utility exits with one of the following values: 0 The files are identical. 1 The files are different; this includes the case where one file is identical to the first part of the other. In the latter case, if the -s option has not been specified, cmp writes to standard output that EOF was reached in the shorter file (before any differences were found). >1 An error occurred. By analogy, integrit should return 0 on success, 1 on difference and 2 on an error. RGDS GARY --------------------------------------------------------------------------- Gary E. Miller Rellim 20340 Empire Blvd, Suite E-3, Bend, OR 97701 ge...@re... Tel:+1(541)382-8588 Fax: +1(541)382-8676 |