home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / next / sysadmin / 6602 < prev    next >
Encoding:
Text File  |  1992-11-19  |  1.3 KB  |  47 lines

  1. Newsgroups: comp.sys.next.sysadmin
  2. Path: sparky!uunet!ftpbox!mothost!schbbs!news
  3. From: sdunbar@mailbox.fwrdc.rtsg.mot.com  (Steven T. Dunbar)
  4. Subject: loginwindow hooks- ARGHHHH!!!!
  5. Organization: MOTOROLA 
  6. Date: Thu, 19 Nov 1992 19:16:53 GMT
  7. Message-ID: <1992Nov19.191653.29086@schbbs.mot.com>
  8. Sender: news@schbbs.mot.com (Net News)
  9. Nntp-Posting-Host: 160.2.5.78
  10. Lines: 35
  11.  
  12. I'm trying to do some accounting of my log in time.
  13.  
  14. I wrote a login script like this:
  15. #!/bin/csh
  16. echo 'Login :' `/bin/date` >> ~/.worklog
  17.  
  18. and I wrote a logout script like this:
  19. #!/bin/csh
  20. echo 'Logout :' `/bin/date` >> ~/.worklog
  21.  
  22. I then did (as root):
  23.  
  24. dwrite loginwindow LoginHook /usr/local/bin/loginscript
  25. dwrite loginwindow LogoutHook /usr/local/bin/logoutscript
  26.  
  27. I logged out of the console, used 'exit' to reload the 
  28. loginwindow, logged in, and it doesn't work.
  29.  
  30. the scripts work just fine from the command line.
  31.  
  32. I rebooted the machine... still didn't work...
  33.  
  34. Anyone know why this is failing???
  35.  
  36. Thanks!!!
  37.  
  38. Steve
  39. ---
  40. ____________________________________________________________________________
  41. Steven T. Dunbar                          sdunbar@mailbox.fwrdc.rtsg.mot.com
  42. Development Engineer                      (817) 232-6080
  43.  
  44. Motorola GSS Cellular Infrastructure Group - Ft. Worth Research & Development
  45. ____________________________________________________________________________
  46.  
  47.