ncid-yearlog - create a yearly call log from the monthly call logs
ncid-yearlog [-h] [-v]
The
ncid-yearlog script is called from
cron on the first day of
each month. It creates a yearly file for
cidcall.log in $HOME/NCID/log
and, if it exists,
ciddata.log
The
ncid-yearlog script should only be run once on the first of the month
from the user's
crontab. Running it more than once will result in
duplicate data.
- -h
- Prints this help
- -V
- Displays the version
- logrotate:
- rotates, compresses, and mails system logs
- ncidrotate:
- must have Lines2keep=0 (default)
- user crontab:
- 11 5 1 * * /usr/local/share/ncid/sys/ncid-yearlog
/usr/local/share/sys/ncid-yearlog
$HOME/NCID/log/cidcall-<year>.log
$HOME/NCID/log/ciddata-<year>.log
/usr/local/etc/ncid/ncidrotate.conf
/var/log/cidcall.log
/var/log/ciddata.log
ncidrotate.1, ncidrotate.conf.5, ncidd.8