From owner-freebsd-questions Tue Sep 7 14:51:21 1999 Delivered-To: freebsd-questions@freebsd.org Received: from fedde.littleton.co.us (fedde.littleton.co.us [207.204.248.149]) by hub.freebsd.org (Postfix) with ESMTP id 5C3A314E05 for ; Tue, 7 Sep 1999 14:51:16 -0700 (PDT) (envelope-from cfedde@fedde.littleton.co.us) Received: from fedde.littleton.co.us (localhost.fedde.littleton.co.us [127.0.0.1]) by fedde.littleton.co.us (8.9.3/8.9.3) with ESMTP id PAA11621; Tue, 7 Sep 1999 15:49:25 -0600 (MDT) Message-Id: <199909072149.PAA11621@fedde.littleton.co.us> To: Alfred Perlstein Cc: Decebal Topala , questions@FreeBSD.ORG From: Chris Fedde Subject: Re: don't fork bomb In-reply-to: Your message of "Tue, 07 Sep 1999 10:14:23 -0000." Date: Tue, 07 Sep 1999 15:49:25 -0600 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Alfred, Let me apologize in advance for (ab)using your post to reply to Decebal Topala. Alfred Perlstein writes: On Tue, 7 Sep 1999, Decebal Topala wrote: > Hi > > I used an script to ping all ip addresses in my ocal ip subnet. > I was very slow. In order to make this faster i put ping process in > baground. After 15 second system is dumpimg. can you please tell us the panic message? Decebal If the goal is to run a ping sweep then there are better tools than ping(1) for this. I'd recommend looking at fping in the ports collection. for f in `jot 255` do for g in `jot 255` do echo 10.0.$f.$g done done | /usr/local/sbin/fping Much faster, easier to process the output and very much lower resource utilization than forking for every address. Even with Alfred's optimization of waiting on 254 process boundaries. chris __ Chris Fedde 303 773 9134 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message