Hi gurus, I am trying to get the output of ping into a filehandle. My problem is that this program works on one Linux box and throws up an error on another. Pls tell me where am I goofing up.
<code> ## I get an error in this part open(PING,"-|","ping -c 30 192.168.1.1") || die "Cannot ping to 192.168.1.1 : ", $!,"\n"; while($line = <PING>) { print $line if($DEBUG == 1); chomp $line; ## lots of further processing... } ## end of while </code> I tried to run it on 2 Linux boxes with one working fine. foll is the "uname -a" output of this one: Linux m3 2.4.6 #7 Tue Jul 3 14:32:36 IST 2001 i686 unknown Then I took the "uname -a" output of the erroneous one : Linux shiva 2.4.13 #2 Fri Nov 2 07:09:41 IST 2001 i686 unknown Can anyone pint out the mistake to me. Regards, Parvez _______________________________________________ Perl-Unix-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs