Date: Wed, 8 Oct 1997 00:41:34 BST From: Michael Ryan <mike@NetworX.ie> To: FreeBSD Support <questions@freebsd.org> Subject: "ps ax" in infinite loop! Message-ID: <ECS9710080034A@NetworX.ie>
next in thread | raw e-mail | index | archive | help
Hi all, I ran my /bin/sh script just now to bring down my PPP link to the Internet. One part of that is the killing off of Squid. The code is as follows: pid="`ps ax | egrep squid | egrep -v egrep | awk '{ print $1 }'`" test "$pid" && kill $pid The script wasn't finishing as quick as it should. When I logged in on another window, and did a "ps ax" to see what was happening, the "ps ax" executing within the script was gobbling up just about all available CPU time! Its TIME column was showing 11:48.23 and climbing by a second each second! Anybody seen this and know a solution? Please email me directly. Bye, Mike <mike@NetworX.ie> ---
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ECS9710080034A>