Hi. I have file.pl that generates data to a result file- data.pl. In the middle of the process, it stops and system opens another file for output. How can I get all the output from 2 different scripts to write to 1 output file (data.pl)?
#This is my result file that is opened in file.pl
open OF, ">$report_file_name" or die "Can't Open $report_file_name: $!";
This is a loop in file.pl
foreach ($ip) { system('/export/home/manager/ready/proxy.pl', $ip);
system("perl proxy.pl $ip"
;
}
It opens proxy.pl for more data to be outputed. I want it to append to
the file that was opened ($report_file_name) in file.pl.
Any ideas? hope this was clear.
Portia
#This is my result file that is opened in file.pl
open OF, ">$report_file_name" or die "Can't Open $report_file_name: $!";
This is a loop in file.pl
foreach ($ip) { system('/export/home/manager/ready/proxy.pl', $ip);
system("perl proxy.pl $ip"
}
It opens proxy.pl for more data to be outputed. I want it to append to
the file that was opened ($report_file_name) in file.pl.
Any ideas? hope this was clear.
Portia