/check_exit-code

Primary LanguagePythonGNU General Public License v2.0GPL-2.0

check_exit-code

This script can check whether a file was last modified before a time X. If it was modified after that, an error is raised. It can also check, whether the file contains a specific string (e.g. "exit 0"). If it's not there, an error is raised.

Example:

check_exit_code.py --exitcode -t 20 /path/to/logfile/