Discussion:
[Aide] Aide Exit Codes
alex.shearn
2014-02-27 15:16:36 UTC
Permalink
Hi all,



We're using aide in our project, and I'm trying to script an update as part
of an install script.



I was wondering if there was any documentation on what the exit codes mean?
I'd like to handle anything unexpected if possible.





Thanks,



Alex Shearn

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.tut.fi/pipermail/aide/attachments/20140227/f7605c82/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 8334 bytes
Desc: not available
URL: <http://mailman.cs.tut.fi/pipermail/aide/attachments/20140227/f7605c82/attachment.bin>
Richard van den Berg
2014-02-27 16:41:15 UTC
Permalink
I was wondering if there was any documentation on what the exit codes mean? I?d like to handle anything unexpected if possible.
Did you read the aide man page using the "man aide" command?

Kind regards,

Richard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.tut.fi/pipermail/aide/attachments/20140227/4039181d/attachment.html>
alex.shearn
2014-02-27 16:49:06 UTC
Permalink
"On 27 feb. 2014, at 16:16, <alex.shearn at bt.com> wrote:
I was wondering if there was any documentation on what the exit codes mean? I?d like to handle anything unexpected if possible.
Did you read the aide man page using the "man aide" command?

Kind regards,

Richard"

Richard,

I thought I?d found them online (the servers I?m working with have man pages removed for some reason), but another google returns a different set of pages. Those indicate that any non-zero exit code can be interpreted to mean ?Files have changed?, and list a vague equation for what has changed.

Thanks,

Alex
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 8334 bytes
Desc: not available
URL: <http://mailman.cs.tut.fi/pipermail/aide/attachments/20140227/5630f221/attachment-0001.bin>
Richard van den Berg
2014-02-27 18:00:56 UTC
Permalink
I thought I'd found them online (the servers I'm working with have man pages removed for some reason), but another google returns a different set of pages. Those indicate that any non-zero exit code can be interpreted to mean "Files have changed", and list a vague equation for what has changed.
The raw source of the man page is here: http://sourceforge.net/p/aide/code/ci/master/tree/doc/aide.1.in
The relevant part is:

Normally, the exit status is 0 if no errors occurred. Except when the
--check,
--compare or
--update
command was requested, in which case the exit status is defined as:

1 (new files detected?)
2 (removed files detected?)
4 (changed files detected?)

Additionally, the following exit codes are defined for generic error
conditions:

14 Error writing error
15 Invalid argument error
16 Unimplemented function error
17 Invalid configureline error
18 IO error
19 Version mismatch error


Kind regards,

Richard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.tut.fi/pipermail/aide/attachments/20140227/17b59959/attachment.html>
Continue reading on narkive:
Loading...