supportpro
asked on
How to stop all old process in one command
I hve more than 200 old backup process running when I issue
ps -ef| grep bp
how can i kill all the 200 backup process in HPUX
ps -ef| grep bp
how can i kill all the 200 backup process in HPUX
ASKER
# ps -ef | awk '/[b]p {print $2}'
syntax error The source line is 1.
The error context is
/[b]p {print >>> $2} <<<
awk: Quitting
The source line is 1.
please provide the corrected syntax
syntax error The source line is 1.
The error context is
/[b]p {print >>> $2} <<<
awk: Quitting
The source line is 1.
please provide the corrected syntax
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks
pkill bp
or the longer way
ps -ef | awk '/[b]p {print $2}' | xargs kill