on Sun, May 23, 2004 at 01:18:01AM -0600, Bob Proulx ([EMAIL PROTECTED]) wrote:
> Karsten M. Self wrote:
> > while sleep 600
> > do
> > ps aux | awk '/[w]hois/ {print $2}' | ( sleep 30; xargs kill )
> > done
>
> Clever. I like the concept. But I don't like the ps side of the
Karsten M. Self wrote:
> while sleep 600
> do
> ps aux | awk '/[w]hois/ {print $2}' | ( sleep 30; xargs kill )
> done
Clever. I like the concept. But I don't like the ps side of the
implementation. The format is slightly different depending upon the
state of the process. Al
"Karsten M. Self" <[EMAIL PROTECTED]> writes:
> I have few ugly shell scripts which do a lot of WHOIS queries, which
> I've found are prone to hang for a long time. The simple thing to do is
> to hunt for whois queries, then, and periodically kill them:
>
> while sleep 600
> do
>
I have few ugly shell scripts which do a lot of WHOIS queries, which
I've found are prone to hang for a long time. The simple thing to do is
to hunt for whois queries, then, and periodically kill them:
while sleep 600
do
ps aux | awk '/[w]hois/ {print $2}' | xargs kill
done
O
4 matches
Mail list logo