I want to meassure the throughput of a link using Windows build-in FTP tool inside a Perl script. Therefore the script creates the following command script:
Use either open in pipe mode:
open($filehandle, "$command|") or die "did not work: $! $?"; while(<$filehandle>) { #do something with $_ }
or use backticks:
my @programoutput=`$command`