![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V. |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#8
|
|||
|
|||
|
Quote:
|
| Forum Sponsor | ||
|
|
|
#9
|
|||
|
|||
|
Code:
who -u | grep 'jarhadta' | awk '$6=/old/{ print $7}' | xargs kill -HUP
|
|
#10
|
|||
|
|||
|
I cannt understand what to do. please give me a detail command using my report.
|
|
#11
|
|||
|
|||
|
hi
"awk '$6=/old/{ print $7}' | xargs kill -HUP" i dont understand this. please give me the solution based on my report |
|
#12
|
|||
|
|||
|
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}'
|
|
#13
|
|||
|
|||
|
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:
|
|
#14
|
|||
|
|||
|
hi,
Any one here who can help me in this issue. please help me |
|||
| Google The UNIX and Linux Forums |