Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Jun 2003 09:10:16 -0700 (PDT)
From:      Felipe Gasper <fgasper@uiuc.edu>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/52743: /etc/ppp/ppp.linkup instability issues
Message-ID:  <200306141610.h5EGAGL2046514@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/52743; it has been noted by GNATS.

From: Felipe Gasper <fgasper@uiuc.edu>
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 ....?
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200306141610.h5EGAGL2046514>