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 06: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 07:52 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #8  
Old 03-26-2008
Registered User
 

Join Date: Mar 2008
Posts: 7
Quote:
Originally Posted by biswagit View Post
$ 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.
if any one can help me pls mail me the solution to my email address bishu_1312@hotmail.com
Reply With Quote
Forum Sponsor
  #9  
Old 03-26-2008
Registered User
 

Join Date: Jul 2007
Posts: 93
Code:
who -u | grep 'jarhadta' | awk '$6=/old/{ print $7}' | xargs kill -HUP
Note, substitute the echo command for kill first to test it gives the processes you're looking for.
Reply With Quote
  #10  
Old 03-27-2008
Registered User
 

Join Date: Mar 2008
Posts: 7
I cannt understand what to do. please give me a detail command using my report.


Quote:
Originally Posted by denn View Post
Code:
who -u | grep 'jarhadta' | awk '$6=/old/{ print $7}' | xargs kill -HUP
Note, substitute the echo command for kill first to test it gives the processes you're looking for.
Reply With Quote
  #11  
Old 03-27-2008
Registered User
 

Join Date: Mar 2008
Posts: 7
hi
"awk '$6=/old/{ print $7}' | xargs kill -HUP" i dont understand this. please give me the solution based on my report


Quote:
Originally Posted by denn View Post
Code:
who -u | grep 'jarhadta' | awk '$6=/old/{ print $7}' | xargs kill -HUP
Note, substitute the echo command for kill first to test it gives the processes you're looking for.
Reply With Quote
  #12  
Old 03-28-2008
Registered User
 

Join Date: Jul 2007
Posts: 93
Did you try the command, and if so what was the results?

You have to use the full command posted, in my original post, not just:
"awk '$6=/old/{ print $7}' | xargs kill -HUP"

run the below, and it should give all the process ID's you want to kill, if
not please post results.
Code:
who -u | grep 'jarhadta' | awk '$6=/old/{ print $7}'
Reply With Quote
  #13  
Old 03-28-2008
Registered User
 

Join Date: Mar 2008
Posts: 7
hi
thanks. when i gave this command then i got process id and then when i want to kill that old process by using kill -9 PID(process id) then it shows no such process. It should be noted that 'jarhadta' is a ldap user. please resolve it for me.

Quote:
Originally Posted by denn View Post
Did you try the command, and if so what was the results?

You have to use the full command posted, in my original post, not just:
"awk '$6=/old/{ print $7}' | xargs kill -HUP"

run the below, and it should give all the process ID's you want to kill, if
not please post results.
Code:
who -u | grep 'jarhadta' | awk '$6=/old/{ print $7}'
Reply With Quote
  #14  
Old 03-31-2008
Registered User
 

Join Date: Mar 2008
Posts: 7
hi,
Any one here who can help me in this issue. please help me

Quote:
Originally Posted by biswagit View Post
hi
thanks. when i gave this command then i got process id and then when i want to kill that old process by using kill -9 PID(process id) then it shows no such process. It should be noted that 'jarhadta' is a ldap user. please resolve it for me.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 04:42 PM.


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

Content Relevant URLs by vBSEO 3.2.0