Need help with 1 line job
Hi guys, I need help creating one simple command,
what I want to do is kill all httpd procceses at once,
so if I do "ps -ef|grep httpd" I get 5 or 6 httpd proccesses
I want to kill them all, so all other processes stay, only httpd goes away, normaly if you do one by one you can use the pid , but I want to do it in one command.
like for example :
"ps -ef|grep httpd|kill -9 httpd but this does not works"
Please help.
|