home *** CD-ROM | disk | FTP | other *** search
/ minnie.tuhs.org / unixen.tar / unixen / PDP-11 / Trees / V6 / usr / man / man8 / ac.8 next >
Encoding:
Text File  |  1975-06-26  |  1.1 KB  |  56 lines

  1. .th AC VIII 2/20/74
  2. .sh NAME
  3. ac \*- login accounting
  4. .sh SYNOPSIS
  5. .bd ac
  6. [
  7. .bd \*-w
  8. wtmp ] [
  9. .bd \*-p
  10. ] [
  11. .bd \*-d
  12. ] people
  13. .sh DESCRIPTION
  14. .it Ac
  15. produces a printout giving
  16. connect time
  17. for each user who has logged in
  18. during the life of the current
  19. .it wtmp
  20. file.
  21. A total is also produced.
  22. .bd \*-w
  23. is used to specify an alternate \fIwtmp\fR file.
  24. .bd \*-p
  25. prints individual totals; without this option,
  26. only totals are printed.
  27. .bd \*-d
  28. causes a printout for each midnight to midnight
  29. period.
  30. Any
  31. .it people
  32. will limit the
  33. printout to only the specified login names.
  34. If no \fIwtmp\fR file is given,
  35. .it /usr/adm/wtmp
  36. is used.
  37. .s3
  38. The accounting file
  39. .it /usr/adm/wtmp
  40. is maintained by
  41. .it init
  42. and
  43. .it login.
  44. Neither of these programs creates the file,
  45. so if it does not exist
  46. no connect-time accounting is done.
  47. To start accounting, it should be created with length 0.
  48. On the other hand if the file is left undisturbed it will
  49. grow without bound, so periodically any information
  50. desired should be collected and the file truncated.
  51. .sh FILES
  52. /usr/adm/wtmp
  53. .sh "SEE ALSO"
  54. init (VIII), login (I), wtmp (V).
  55. .sh BUGS
  56.