changed - check local host/server entities for change
changed [ options ]
checks local host/server entities for change or stangnation. The file $HOME/lib/changed/CHECK
must contain calls to the check
function for each entity to be checked. changed
is typically set to run
daily via crontab(1).
The check function operands are:
- [ every day ]
Optional day of week limitation.
Either changed or stagnant. changed expects no
change between checks and stagnant expects any change between checks.
A user supplied function (in the CHECK file) that does
the actual check. The standard output and standard error of this function are compared against previous results to
determine change. This output should be enough to identify the nature of the change(s).
The entity being checked.
- host ...
One or more hosts to check. The caller must have password-less
ssh(1) access to the hosts.
s are provided by changed
Checks regular and executable files for change.
Checks ksh executables for change.
- -m, --mail=user
Mail changes to user.
- -n, --show
Show actions but do not execute.
- -r, --recent
Show most recent changes.
check changed check_ksh_changed /bin/ksh penguin www
check every friday stagnant check_sw_download_stagnant downloads www public
Example crontab(1) entry:
11 23 * * * ksh -c 'PATH=$HOME/bin:/usr/common/ast/bin:$PATH changed -m bozo'