home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / unix / sys5 / r4 / 1414 < prev    next >
Encoding:
Internet Message Format  |  1993-01-27  |  1.2 KB

  1. Xref: sparky comp.unix.sys5.r4:1414 comp.unix.questions:15977
  2. Newsgroups: comp.unix.sys5.r4,comp.unix.questions
  3. Path: sparky!uunet!ihz.compuserve.com!sam
  4. From: sam@csi.compuserve.com (Sam Neely)
  5. Subject: What's the correct way to write a wtmp entry on SVR4?
  6. Message-ID: <C1JqnG.2EL@csi.compuserve.com>
  7. Organization: CompuServe Incorporated
  8. Date: Thu, 28 Jan 1993 04:18:51 GMT
  9. Lines: 18
  10.  
  11. Environment: SVR4 (4.0.4), Dell Issue 2.2
  12.  
  13. I need to write an entry to /var/adm/wtmp and /var/adm/wtmpx to signify
  14. that a user has logged out.  I have tried using the getut(3c) routines
  15. to do this, but I do not know how to tell the library to append the
  16. entry to the end of the file rather than searching for an entry to
  17. update.
  18.  
  19. Could someone tell me the correct way to update wtmp{,x}?  I'd like
  20. to use the getut(3c) routines if it is possible as I don't want to
  21. open the files directly if I can avoid it.
  22.  
  23. Thanks
  24. -- 
  25. Sam Neely, CompuServe Incorporated                  +1 614 538 3718 (voice)
  26. 5000 Arlington Centre Blvd, Columbus, OH  43220     +1 614 457 0348 (FAX)
  27. Electronic Mail:  InfoPlex: >CSI:SAM      Internet: sam@csi.compuserve.com
  28. To err is human, to forgive is against company policy
  29.