From owner-freebsd-bugs@FreeBSD.ORG Sat Jun 14 09:10:17 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5DD4437B401 for ; Sat, 14 Jun 2003 09:10:17 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0569643FB1 for ; Sat, 14 Jun 2003 09:10:17 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h5EGAGUp046515 for ; Sat, 14 Jun 2003 09:10:16 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h5EGAGL2046514; Sat, 14 Jun 2003 09:10:16 -0700 (PDT) Date: Sat, 14 Jun 2003 09:10:16 -0700 (PDT) Message-Id: <200306141610.h5EGAGL2046514@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Felipe Gasper Subject: Re: bin/52743: /etc/ppp/ppp.linkup instability issues X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Felipe Gasper List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Jun 2003 16:10:17 -0000 The following reply was made to PR bin/52743; it has been noted by GNATS. From: Felipe Gasper To: freebsd-gnats-submit@FreeBSD.org, Martin.Kaeske@Stud.TU-Ilmenau.DE Cc: Subject: Re: bin/52743: /etc/ppp/ppp.linkup instability issues Date: Sat, 14 Jun 2003 11:07:22 -0500 But that doesn't explain why ! sh -c "/sbin/ifconfig tun0 | /usr/bin/grep inet | /usr/bin/awk '{print $2}' | mail -s 'New IP' root" locks the script up and ! sh -c "/sbin/ifconfig tun0 | /usr/bin/mail -s 'New IP' root" doesn't, am I right? I have noticed, though, that if I create a shell script that contains only the first line (ifconfig | grep | awk), it seems to ignore the awk command, outputting the output of the grep command. If I take out the sh -c and double quotes, though, it works....maybe completely unrelated, quite possibly something that I'm doing wrong, but ....?