From owner-freebsd-hackers Wed Apr 9 08:14:05 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id IAA24828 for hackers-outgoing; Wed, 9 Apr 1997 08:14:05 -0700 (PDT) Received: from time.cdrom.com (root@time.cdrom.com [204.216.27.226]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id IAA24823 for ; Wed, 9 Apr 1997 08:14:00 -0700 (PDT) Received: from time.cdrom.com (jkh@localhost [127.0.0.1]) by time.cdrom.com (8.8.5/8.6.9) with ESMTP id IAA17890; Wed, 9 Apr 1997 08:13:44 -0700 (PDT) To: peter@spinner.DIALix.COM (Peter Wemm) cc: freebsd-hackers@FreeBSD.ORG Subject: Re: new ping option In-reply-to: Your message of "09 Apr 1997 13:51:00 GMT." <860593860.311485@haywire.DIALix.COM> Date: Wed, 09 Apr 1997 08:13:44 -0700 Message-ID: <17886.860598824@time.cdrom.com> From: "Jordan K. Hubbard" Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > Well, how would the semantics work? Send a single ping, wait for a maximum > of 'n' seconds and return a status? There is a program called fping (now > a port) that already does this, and can do multiple machines at once. It sounds like fping is just the ticket then. Why not simply something like this in your .bashrc for your beeping ping? function bping { while :; do if /usr/local/sbin/fping -q -t 250 $1; then echo "$1 is alive!!" break; fi done } See, for someone like me, a beep is even less than relevant. My PC has such a weak speaker that I can't even hear it over the fans and so I might as well not have a speaker at all. For myself, I'd substitute in something like ``xmessage "$1 is alive!"'' so I could actually see it. In other words, one man's feep is another man's popup notifier and ping shouldn't be making unwarranted assumptions! :-) Jordan