home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.next.sysadmin
- Path: sparky!uunet!ftpbox!mothost!schbbs!news
- From: sdunbar@mailbox.fwrdc.rtsg.mot.com (Steven T. Dunbar)
- Subject: loginwindow hooks- ARGHHHH!!!!
- Organization: MOTOROLA
- Date: Thu, 19 Nov 1992 19:16:53 GMT
- Message-ID: <1992Nov19.191653.29086@schbbs.mot.com>
- Sender: news@schbbs.mot.com (Net News)
- Nntp-Posting-Host: 160.2.5.78
- Lines: 35
-
- I'm trying to do some accounting of my log in time.
-
- I wrote a login script like this:
- #!/bin/csh
- echo 'Login :' `/bin/date` >> ~/.worklog
-
- and I wrote a logout script like this:
- #!/bin/csh
- echo 'Logout :' `/bin/date` >> ~/.worklog
-
- I then did (as root):
-
- dwrite loginwindow LoginHook /usr/local/bin/loginscript
- dwrite loginwindow LogoutHook /usr/local/bin/logoutscript
-
- I logged out of the console, used 'exit' to reload the
- loginwindow, logged in, and it doesn't work.
-
- the scripts work just fine from the command line.
-
- I rebooted the machine... still didn't work...
-
- Anyone know why this is failing???
-
- Thanks!!!
-
- Steve
- ---
- ____________________________________________________________________________
- Steven T. Dunbar sdunbar@mailbox.fwrdc.rtsg.mot.com
- Development Engineer (817) 232-6080
-
- Motorola GSS Cellular Infrastructure Group - Ft. Worth Research & Development
- ____________________________________________________________________________
-
-