[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PID



On Sat, 30 Jun 2001, Bob DeBolt wrote:

> Greetings to all
>
> I have attempted to find a way to extract a PID for tcpdump
> so I can stop and archive the logs every day a 11:59 PM.
>
> I want to run this in a shell script. Starting TCPDump and archiving is
> functioning fine. I  simply need to get the PID so I can "kill -9 PID"
> and finish the process.

ps ax |grep tcpdump |awk '{print $1}' |xargs -n 1 kill -9

>
> Thanks in advance
>
> Bob DeBolt
>
>



Best regards,
   Alexander Yurchenko
--------------------------------------------------
GRANGE-RIPN              mailto: grange@rt.mipt.ru