- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: script for logging off users who are idle
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2005 05:55 AM
тАО07-18-2005 05:55 AM
Re: script for logging off users who are idle
Yes if you would not mind, could you e-mail it to jimenez-j@iehp.org?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2005 05:56 AM
тАО07-18-2005 05:56 AM
Re: script for logging off users who are idle
I don't know scripts to logout users who are idle.
Anyway a possible solution is keepalive parameters.
ndd -h | grep -i keepalive
You will see more details by
ndd -h
Hope this helps you.
Best regards,
Fabio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2005 07:30 AM
тАО07-19-2005 07:30 AM
Re: script for logging off users who are idle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2005 07:50 AM
тАО07-19-2005 07:50 AM
Re: script for logging off users who are idle
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2005 08:07 AM
тАО07-19-2005 08:07 AM
Re: script for logging off users who are idle
:-) Good luck!
-- Tom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2005 08:39 AM
тАО07-19-2005 08:39 AM
Re: script for logging off users who are idle
I am the Admin here. Max, who is the programmer, is not here today. Would it be to much to ask you to send me what you have already. I am sure that he can modify it accordingly. If so my email adress is Jimenez-J@iehp.org
Thanks again,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2005 11:48 PM
тАО07-19-2005 11:48 PM
Solutionhttp://www.darkwing.com/idled/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-20-2005 05:34 AM
тАО07-20-2005 05:34 AM
Re: script for logging off users who are idle
I took a quick look at "idled" and it actually seems to do exactly what you need. So take a look. If you have trouble getting it to work or still need me to send you the code that I have (which would need modification to do what you need), let me know. Take care.
-- Tom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2005 01:26 AM
тАО07-21-2005 01:26 AM
Re: script for logging off users who are idle
Thanks
Juan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2005 02:24 AM
тАО08-12-2005 02:24 AM
Re: script for logging off users who are idle
#!/bin/ksh
who -u | cut -c 1-10,38-50 | egrep "[12][0-9]:|old" > /var/tmp/current
for IDLE_USR in `cat /var/tmp/current | awk '{print $3}'`
do
# kill -9 $IDLE_USR
echo $IDLE_USR
done
This will kill any login shell where the user has not typed anything for 10 hours or more.
When you've tried it out and are happy that it is choosing the right processes to kill, remove the comment from the kill line and delete the echo line.
Share And Enjoy
- Tags:
- who