From owner-freebsd-questions Thu Sep 4 19:13:55 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id TAA09352 for questions-outgoing; Thu, 4 Sep 1997 19:13:55 -0700 (PDT) Received: from relay.acadiau.ca (root@relay.acadiau.ca [131.162.2.90]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id TAA09344 for ; Thu, 4 Sep 1997 19:13:52 -0700 (PDT) Received: from dragon.acadiau.ca (dragon [131.162.1.79]) by relay.acadiau.ca (8.8.5/8.8.5) with SMTP id XAA08895 for ; Thu, 4 Sep 1997 23:14:02 -0300 (ADT) Received: by dragon.acadiau.ca id XAA19228; Thu, 4 Sep 1997 23:10:25 -0300 From: 026809r@dragon.acadiau.ca (Michael Richards) Message-Id: <199709050210.XAA19228@dragon.acadiau.ca> Subject: Ping bug? To: freebsd-questions@freebsd.org Date: Thu, 4 Sep 1997 23:10:24 -0300 (ADT) X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hi. I have an interesting problem with ping. I don't know if it is a bug or not. The man page says that the -Q switch will shut it up when it comes to error messages. I am writing a package to tell me if the host is up or down. the script calls: ping -c1 -Q lib226-1.acadiau.ca at this time it is dead. so it tries: ping -c10 -Q lib226-1.acadiau.ca if nothing comes back, we assume lib226-1 is dead.. right? Here's what I keep getting back. ping: sendto: Host is down ping: wrote lib226-1.acadiau.ca 64 chars, ret=-1 According to the man page, it shouldn't give me any errors. Even funnier, it seems to behave correctly if I just start off pinging it once. As soon as I try pinging a second time in a row, it spits out these error messages... Any ideas? -Mike