Thanks it works. Except now I have another problem:
I have a loop in file1.pl something like:
foreach my $ip (....) {
....
#this opens my file2.pl
system('export/manager/file2.pl, $ip, $report);
system('perl file2.pl' $ip, $report);
}
In my file2.pl, I have this:
$ip=$ARGV[0];
$report=$ARGV[1];
But when I run it it gives me only the last $ip information. Shouldn't the foreach loop give me one $ip at a time when I pass it to the other script?
thanks,
Porshe