Quote:
|
what does it mean in your example ? "grep :1"
|
I'm trying to grab all users that have an idle time of 1:00 or greater. I figure if the script is run once an hour I shouldn't have to worry about the possibilty of an idle time that is 2:xx, 3:xx, etc.
I tried the code you listed but as soon as I ran it, it killed my session. No other sessions were killed though, just mine. I even altered the code to echo each PID instead of kill -9 them and it did the same thing.
Quote:
Far more elegant is to use the facilities built into the OS. I use AIX where you set TMOUT=<time in seconds>
i.e. if you put
export TMOUT=600
in /etc/profile then users will be logged off after 10 mins idle time. Other flavours of Unix use different methods
|
I'm using SCO Unix and I think our vendor might use a custom shell, which does call /etc/profile. I added the line you mentioned, but it didn't work, just prevented users from logging in. I'll try to track down the correct syntax to make sure it's right for my system.
Thanks for all the help thus far!
Kyzar1