The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > HP-UX
Google UNIX.COM


HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Idle users over 1 day pbonilla Shell Programming and Scripting 1 11-27-2006 05:07 PM
script to kill idle users tayyabq8 Shell Programming and Scripting 8 04-24-2006 08:50 AM
Log off idle users wtofu AIX 0 06-30-2005 06:38 PM
Is there a script available to kill Idle users rfmurphy_6 HP-UX 5 06-16-2005 01:31 PM
Identifiy and Kill Idle Unix(SCO) Process called externally vbalajis SCO 1 12-19-2003 06:52 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-01-2005
Registered User
 

Join Date: May 2005
Posts: 20
Stumble this Post!
kill idle users

Hi,

In my network we uses the NetTerm program to connect us to HP-UX 10.x server from windows workstations, but in some cases the user doesn't logout and close it by window's x button. The problem is that in HP-UX the user and all his tasks remain active and when he enter again HP-UX creates a new session without kill the old session. My question is how can I configure my server to kill the idle session or at least another solution?

Thanks..
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 06-01-2005
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,425
Stumble this Post!
See this link.
Reply With Quote
  #3 (permalink)  
Old 06-17-2005
Registered User
 

Join Date: Jun 2005
Location: Cleveland, Ohio
Posts: 18
Stumble this Post!
Thumbs up I found this link also...

I am in the process of trying to figure out the configuration file to set the amount of time a user can idle. I didn't see anything in the files about removing orphaned sessions. I will continue to investigate and post my findings.
Reply With Quote
  #4 (permalink)  
Old 06-23-2005
Registered User
 

Join Date: Aug 2001
Location: netherlands
Posts: 2
Stumble this Post!
auto logout after x seconds idle

you do not need an script just enter next into .profile of the users .
it's a idle tomeout counter .
TMOUT=1800
readonly TMOUT


in this exaple logged out after 30 minutes of idle .


have a nice day Wim .
Reply With Quote
  #5 (permalink)  
Old 06-23-2005
Registered User
 

Join Date: Oct 2002
Posts: 670
Stumble this Post!
What happens to the user's background processes? I am assuming if they are not "nohup"ed they will be killed.
Reply With Quote
  #6 (permalink)  
Old 06-28-2005
Registered User
 

Join Date: Jun 2005
Location: Cleveland, Ohio
Posts: 18
Stumble this Post!
Thumbs up The TMOUT setting rules

I have instituted the TMOUT entry and it works like a charm. Thanks for the help.
Reply With Quote
  #7 (permalink)  
Old 03-26-2008
Registered User
 

Join Date: Mar 2008
Posts: 7
Stumble this Post!
kill old user

$ who -u | grep 'jarhadta'
jarhadta pts/2 Mar 26 15:46 1:15 18639 10.236.0.207
jarhadta pts/22 Feb 15 00:50 old 9540 10.236.0.207
jarhadta pts/23 Feb 15 00:50 old 9572 10.236.0.207
jarhadta pts/24 Feb 15 00:50 old 9616 10.236.0.207
jarhadta pts/25 Feb 15 00:50 old 9650 10.236.0.207
jarhadta pts/26 Feb 15 00:50 old 9690 10.236.0.207
jarhadta pts/27 Feb 15 00:50 old 9728 10.236.0.207
jarhadta pts/28 Feb 15 00:50 old 9761 10.236.0.207
jarhadta pts/29 Feb 15 00:50 old 9815 10.236.0.207
jarhadta pts/30 Feb 15 00:51 old 10056 10.236.0.207
jarhadta pts/31 Feb 15 00:51 old 10088 10.236.0.207
jarhadta pts/33 Feb 15 00:51 old 9954 10.236.0.207
jarhadta pts/32 Feb 15 00:51 old 9933 10.236.0.207
jarhadta pts/34 Feb 15 00:51 old 9992 10.236.0.207
jarhadta pts/36 Feb 15 00:51 old 10122 10.236.0.207
jarhadta pts/35 Feb 15 00:51 old 10024 10.236.0.207
jarhadta pts/37 Feb 15 00:51 old 10156 10.236.0.207


Please tell me how can i kill this user 'jarhadta' which are in old status.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 12:38 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0