Operating System - HP-UX
1832678 Members
2908 Online
110043 Solutions
New Discussion

Re: w does not show the user but ps does.

 
brian_31
Super Advisor

w does not show the user but ps does.

Hi Team:

I have a case here that w command does not report the user but ps -ef does report the user. But actually the user has launched an application using citrix ICA client(using PC) and has actually closed the app. Also i see the Process the user started occupies 100% cpu and we seem to have a run away process. Please help.
Also let me know if this is two different problems or a single problem.

Thanks & Regards
Brian.
4 REPLIES 4
Laurie A. Krumrey
Regular Advisor

Re: w does not show the user but ps does.

Why don't you just kill the hanging task(s).
Happiness is a choice
Steven Gillard_2
Honored Contributor

Re: w does not show the user but ps does.

Can you post an example of the incorrect 'w' output that you mention?

As for the runaway process, if you're sure that it isn't needed just kill it:

# kill

and if the process still doesn't die:

# kill -9

Regards,
Steve
Tom Geudens
Honored Contributor

Re: w does not show the user but ps does.

Hi,
You can probably just kill the process. Verify if the process is still connected to a terminal. Example
#ps -ef | grep dblogmon
dblogmon 29872 1 19 09:51:38 ? 0:00 menu menu

The "?" indicates that the process is no longer connected to a terminal.

Hope this helps,
Tom
A life ? Cool ! Where can I download one of those from ?
Craig Rants
Honored Contributor

Re: w does not show the user but ps does.

Do you ever see a username of someone who uses a Citrix program with the w command. I would liken that to an oracle app. There are on that box using the app, but you'll never know it by looking at the w, who, last ... I think that should solve the first problem.

Second, the user probably exited out of their Citrix application improperly and caused the hung process. Kill it and have the user explain how they exit Citrix. If they have performed the exit improperly give them a little trainging.

HH,
C
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut