1NCID-YEARLOG(1) NCID NCID-YEARLOG(1)
2
3
4
6 ncid-yearlog - create a yearly call log from the monthly call logs
7
9 ncid-yearlog [-h] [-V]
10
12 The ncid-yearlog script is called from cron on the first day of each
13 month. It creates a yearly file for cidcall.log in $HOME/NCID/log and,
14 if it exists, ciddata.log
15
16 The ncid-yearlog script should only be run once on the first of the
17 month from the user's crontab. Running it more than once will result
18 in duplicate data.
19
21 -h Prints this help
22 -V Displays the version
23
25 logrotate: rotates, compresses and mails system logs
26 ncidrotate: must have Lines2keep=0 (default)
27 user crontab: 11 5 1 * * /usr/share/ncid/sys/ncid-yearlog
28
30 /usr/share/sys/ncid-yearlog
31 $HOME/NCID/log/cidcall-<year>.log
32 $HOME/NCID/log/ciddata-<year>.log
33 /etc/ncid/ncidrotate.conf
34 /var/log/cidcall.log
35 /var/log/ciddata.log
36
38 ncidrotate.1, ncidrotate.conf.5, ncidd.8
39
40
41
42NCID 2019-08-17 NCID-YEARLOG(1)