RE: [Perl-unix-users] getting putput of ping command into file

2003-01-15 Thread Gerber, Christopher J
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 15, 2003 5:02 PM > To: Perl-Unix-Users > Subject: [Perl-unix-users] getting putput of ping command into file > > > Hi gurus, > I am trying to get the outpu

RE: [Perl-unix-users] getting putput of ping command into file

2003-01-15 Thread Scott Purcell
uot;; open (PING, "$cmd |") or die("Problem somewhere. $!"); my @pings = ; close PING; foreach (@pings) { print; } Scott Purcell -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 15, 2003 4:02 PM To: Perl-Unix-Users Subject

[Perl-unix-users] getting putput of ping command into file

2003-01-15 Thread ppathan
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. ## I get an error in this part open(PING,"-|","ping -c 30 192.168.1.1") || die "Cannot ping to 1