
Xploit
Novice
Apr 18, 2011, 7:45 AM
Post #1 of 2
(248 views)
|
|
perl bash commands problem
|
Can't Post
|
|
i am trying to just play with simple bash commands in for loop in perl i am using the following code: #!/usr/bin/perl use warnings; use strict; open FILE, "<ips.txt" or die $!; my @file = <FILE>; for (@file) { system("ping -c 1 $_ |grep 'bytes from'"); } everything works but the grep part. what am i doing wrong?
|