RMGBELGIUM
MIS
Hi all,
I'm trying to get the following to work :
from commandline I execute the following command :
ftp host
bin
put "|dd if=/dev/zero bs=4k count=100" /dev/null
this to test the troughput from the network
But when I try to put this into a perlscript , I get the error "No such file or directory".The command |dd .... doesn't get executed, instead it goes looking for an input file.
use FTP;
$remote_host="servername";
$ftp=Net::FTP->new("$remote_host",Debug => 1)|| die "$@ can't connect\n";
$ftp->login('root','password');
$ftp->binary();
$ftp->put("|dd if=/dev/zero bs=4k count=10 /dev/null");
Any suggestions how I can get this to work?
Thx in advance,
Regards,
RMGBelgium
I'm trying to get the following to work :
from commandline I execute the following command :
ftp host
bin
put "|dd if=/dev/zero bs=4k count=100" /dev/null
this to test the troughput from the network
But when I try to put this into a perlscript , I get the error "No such file or directory".The command |dd .... doesn't get executed, instead it goes looking for an input file.
use FTP;
$remote_host="servername";
$ftp=Net::FTP->new("$remote_host",Debug => 1)|| die "$@ can't connect\n";
$ftp->login('root','password');
$ftp->binary();
$ftp->put("|dd if=/dev/zero bs=4k count=10 /dev/null");
Any suggestions how I can get this to work?
Thx in advance,
Regards,
RMGBelgium