LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Help w/comand line (https://www.linuxquestions.org/questions/linux-software-2/help-w-comand-line-95736/)

dolvmin 09-22-2003 11:33 PM

Help w/comand line
 
How do I do this on Linux rh9 comand line?

See %CPU of $(pgrep nwserver)
Kill $(pgrep nwserver)

Thanks in advanced.

bulliver 09-23-2003 03:56 PM

>See %CPU of $(pgrep nwserver)

Code:

ps aux | grep nwserver | awk '{print $3}'
> Kill $(pgrep nwserver)

Code:

kill `pidof -s nwserver`

dolvmin 09-23-2003 04:28 PM

Thanks a bunch, I'll try it out.


All times are GMT -5. The time now is 04:24 PM.