There seems to be a bug in the ac command that comes with the acct package. Either that or it seems to work in an unusual way... either way help would be appreciated :)
We do solely time bases accounting and up until now we were using a version of ac from sunsite (I think it was a long time ago). When I went to change over to the debian version that comes with acct I noticed that it skipped days. [11:16am] phoenix(larry)> ac.new -d -f /var/adm/addtold/wtmp.2 Mar 5 total 220.88 Mar 7 total 426.77 Mar 8 total 0.02 [11:17am] phoenix(larry)> ac.old -d -w /var/adm/addtold/wtmp.2 Mar 5 total 220.30 Mar 6 total 234.17 Mar 7 total 190.16 Mar 8 total 0.02 This would not be a happy thing for time charging. While reading the man page I noticed the -a command and this doesn't seem to help, nor does the -z command make Mar 6 show up (there are heaps on login's on Mar 6 when you use last). However when I run it with the --complain switch it complains lots with lines like (about 40 lines worth): /var/adm/addtold/wtmp.2:69: problem: missing login record for `ttyC12' /var/adm/addtold/wtmp.2:364: problem: missing login record for `ttyC10' All I can think of is that somehow the way that we rotate the wtmp file is corrupting it somehow, yet it works perfectly with the old ac we were using and with debian last! Thoughts/insites/help would be much appreciated. Thanks, Adam. ----------------- Earthlight Communications Limited ---------------- P.O. Box 5301 Adam Shand (fax) +64 3 477 5463 Dunedin, New Zealand Systems Manager (voice) +64 3 479 0303 ---------------- http://www.earthlight.co.nz/larry/ ----------------