Sponsored Content
Full Discussion: How to kill network users?
Top Forums UNIX for Advanced & Expert Users How to kill network users? Post 302467681 by jgt on Saturday 30th of October 2010 06:30:10 PM
Old 10-30-2010
Quote:
Originally Posted by Corona688
The telnet connection will close when this happens. How the application responds to it doing so unexpectedly is up to it, but it will know the connection closed.
Code:
# ps -leaf |grep lee                                                            
                                                           
 20 O      lee 18380     1 47  33 20 fb11f910 1484         -   Oct-19   ttyp2 11
-06:53:18 dbr PGM:xx_cmenu -e/u/cops/dta5                                       
# who                                                                           
bonnie     ttyp0        Oct 26 08:39                                            
root       ttyp1        Oct 30 18:17                                            
gary       ttyp3        Oct 14 09:59                                            
norm       ttyp4        Oct 20 14:37                                            
bill       ttyp6        Oct 18 09:26

As you can see, session ttyp2 still exists, even though the user has closed his terminal emulation session. This may not be an issue with HP or AIX, but it is with SCO.

---------- Post updated at 06:30 PM ---------- Previous update was at 06:20 PM ----------

Code:
#sar -u 1 3
18:31:42    %usr    %sys    %wio   %idle (-u)                                   
18:31:43      30      20       0      50                                        
18:31:44      28      22       0      50                                        
18:31:45      34      16       0      50                                        
                                                                                
Average       31      19       0      50                                        
# ps -leaf |grep lee                                                            
 20 S     dtr5  4802   576  0  66 22 fb11a468   80  e0000000 18:31:54       ?   
 00:00:00 sleep 1                                                               
 20 S     root  4803 27372  2  76 20 fb11a9c8   92  f2c0de00 18:31:55   ttyp1   
 00:00:00 grep lee                                                              
 20 O      lee 18380     1 42  35 20 fb11f910 1484         -   Oct-19   ttyp2 11
-07:06:21 dbr PGM:xx_cmenu -e/u/cops/dta5                                       
# kill -9 18380                                                                 
# sar -u 1 3                                                                    
                                                                                
SCO_SV midnight 3.2v5.0.7 >PentIII    10/30/2010                                
                                                                                
18:32:14    %usr    %sys    %wio   %idle (-u)                                   
18:32:15       0       0       0     100                                        
18:32:16       0       0       0     100                                        
18:32:17       0       0       0     100                                        
                                                                                
Average        0       0       0     100

 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Script to kill stranded/orphan process by users.

I have customers on our AIX/UNIX node startup a process that becomes stranded or orphaned and must be killed. I would like to create a script to check for these orphan processes and kill them. I can have cron run this job. The customers process will run and after 24 hours time out leaving an... (4 Replies)
Discussion started by: rjohnson
4 Replies

2. Shell Programming and Scripting

kill process of other users

Hi, Can I kill process submitted by another uesr (say user1) if I'm not the su. If I got some previledges granted from user1, can I kill user1's process? Please advise? Thank you very much! Regards, Tse (4 Replies)
Discussion started by: tsesukfan
4 Replies

3. Shell Programming and Scripting

users on a network

this script checks every 10 sec if one or more users are logged on. the script reports when all the users ( in a specific group) are log on togather, and then stops. first i want to know if it works?? second how to make it better? * the script is in tcsh. #!/bin/tcsh if (!$#argv) then... (1 Reply)
Discussion started by: jaber87
1 Replies

4. Shell Programming and Scripting

Kill users

Someone knows how do I kill a login user only with the login_name? This moment I kill the user using the following command. E4500:/mg98/samuel$ whodo samuel Tue Sep 14 08:32:10 EST 2004 sun pts/234 samuel 7:30 pts/234 24200 0:00 ksh pts/234 26724 0:00 whodo... (3 Replies)
Discussion started by: samuel
3 Replies

5. HP-UX

Is there a script available to kill Idle users

My max user parm is set to 1050. I'm currently at 1038 this is causing major slow downs on the server. I looking for a way log off "idle" user logins with out having to do it individually. :confused: (5 Replies)
Discussion started by: rfmurphy_6
5 Replies

6. Shell Programming and Scripting

How to find users in a network

How to find users in a network? I used who. But i want to to find users using cox internet to connect to a server. PLease help (1 Reply)
Discussion started by: subbarao83
1 Replies

7. Shell Programming and Scripting

kill crashed out users

Hi all, We have a problem where we get a fair few users either exiting incorrectly or crashing. I'm trying to get a script together that runs every hour to kill these processes off. We are running Sco OperServer(TM) Release 5 The command we use to get a list of users who have crashed: ps... (2 Replies)
Discussion started by: tez
2 Replies

8. AIX

Script allows user to kill other users: I'd like to know HOW...

Hello list, Have a problem that's highlighting gaps in my knowledge; can you assist? We have a script that's tacked onto our trading application which allows branch managers etc. to kill off the sessions of other users at their branch. A menu option in the application spawns a shell running... (8 Replies)
Discussion started by: alexop
8 Replies

9. HP-UX

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... (12 Replies)
Discussion started by: efrenba
12 Replies

10. AIX

command to kill all loged in users

Guy's I'm looking for command to kill all the loged in users in AIX server Is there specific command can help us to kill any loged in users I have this command who -u it'll show me the process ID of all the users but I want command to kill all the users including to root without... (1 Reply)
Discussion started by: Mr.AIX
1 Replies
All times are GMT -4. The time now is 11:09 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy