Operating System - HP-UX
1823113 Members
3288 Online
109646 Solutions
New Discussion юеВ

yes command with high cpu usage

 
Roberto Martinez_6
Frequent Advisor

yes command with high cpu usage

Hi, I can see several "yes" commands running and using a lot of cpu. I can't track the program issuing these "yes" commands. In which conditions can a "yes" command load the CPU this much? Could I see the complete command being executed (I guess it's a yes | something )? TIA
It wasn't me
3 REPLIES 3
Robert-Jan Goossens
Honored Contributor

Re: yes command with high cpu usage

Hi,

What the hack is a yes command, try trasing it and find who or what is starting this command.

# ps -ef | grep yes
2134 2105 yes
# ps -ef | grep 2134

Hope it helps,

Robert-Jan.
Michael Tully
Honored Contributor

Re: yes command with high cpu usage

The yes command is a command that echo's what ever message you like to the screen. Once started it continues to write to the same tty that issued it. (by default)

# yes "I know what yes does ..."

# ps -ef | grep yes

should find it. If you can find the tty and can stop it with control-C
Anyone for a Mutiny ?
KCS_1
Respected Contributor

Re: yes command with high cpu usage

Hi,TIA


yes, I have tested this command on my machine.

'yes' is a command, output said " y y y " again and again until interrupted by ctrl+C
so you can find who is running the command easily and stop it.

# ps -ef |grep -i yes





Have a good day~~


Easy going at all.