Re: kill process using job



On 12 Apr., 15:33, SiKing <nos...@xxxxxxxxxxxxx> wrote:
urram...@xxxxxxxxx wrote:
i
want kill process

The (really) long way:
ps -ef | grep listener | grep -v grep | awk '{print $2}' | xargs kill

If you use awk in the pipeline there's no need for two additional grep
processes; awk can do that.

Janis


The (not so) long way:
ps -ef | grep '[l]istener' | awk '{print $2}' | xargs kill

The short way (if installed):
pkill -f listener

HTH.

--
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GE d+(-) s+: a@ C+ ULAHS++$ P- L+>++ E--- W++ N++ o !K w--(+) O- M?>+ V? PS+
PE+(++) Y+ PGP- t+ 5 X R !tv b+ DI(+) D G e++ h---- r+++@ y++++
------END GEEK CODE BLOCK------


.