[Aide] Exit Code Questions

Marc Haber mh+aide at zugschlus.de
Fri Dec 15 11:15:23 EET 2006


On Thu, Dec 14, 2006 at 02:48:56PM -0500, Eric Webster wrote:
> Just curious how these new codes work. On all of our scans that had files
> change/added/deleted we have an exit code of 1280. 
> 
> The man page shows:
> 
>        1 * (new files detected?)     +
> 
>        2 * (removed files detected?) +
> 
>        4 * (changed files detected?)
> 
> 
> So how are we getting 1280?

This is 5 shifted left by 8. For example, perl's system() call returns
the exit code of the called program shifted left by 8, see perldoc -f
system.

I suspect that other languages might do the same.

Greetings
Marc

-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things."    Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature |  How to make an American Quilt | Fax: *49 621 72739835


More information about the Aide mailing list