bin/52743: /etc/ppp/ppp.linkup instability issues

Felipe Gasper fgasper at uiuc.edu
Sat Jun 14 09:10:17 PDT 2003


The following reply was made to PR bin/52743; it has been noted by GNATS.

From: Felipe Gasper <fgasper at uiuc.edu>
To: freebsd-gnats-submit at FreeBSD.org,
	Martin.Kaeske at 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 ....?
 


More information about the freebsd-bugs mailing list