: Hello. I am looking for some sort of scripts that will flag me if users
: are logged in for more than a day on a Sun workstation, then send some
: email. Does anyone know how to find out the same of users on xterminals?
: I suppose wtmp may be an answer... Thanks in advance. Post or reply by
: email directly.
: --
: Applied Micro Circuits Corp. UUCP: ...!ucsd!amcc!paulp
: 6195 Lusk Blvd.
: San Diego, CA 92121 Voice: (619) 535-4228
You could write a script that pipes the output of "last" into awk.
Then print only those users logged on longer than a given time,
then send you mail. I know I made it sound easy, but it's really
not that hard. I wrote something similar in the past and it worked
fine. I don't know if "last" is available on your platform, but
seems there would be something close.
------------------------------------------------------------------------
__________________________ | Steve Thompson
--------------------|--------------------------------------------------
The person who says it cannot be done should
not interrupt the person who is doing it ;) -- Chinese Proverb
------------------------------------------------------------------------