Rate limit sftp upload
Posted: Mon Jun 02, 2014 1:42 am
Hi,
I have limited upload bandwidth and so wanted to limit the upload bandwidth. I modifed line 810 in zmfilter.pl
from
to
The -l 40 option to sftp will rate limit to 40 kbps.
Unfortunately, i get an error that connection to the server cannot be made. Anybody understand why this is happening?
The documentation at http://search.cpan.org/~salva/Net-SFTP- ... Foreign.pm mentions "Note that this option expects a single command argument or a reference to an array of arguments".
I have limited upload bandwidth and so wanted to limit the upload bandwidth. I modifed line 810 in zmfilter.pl
from
Code: Select all
$sftpOptions{more} = [ '-o'=>'StrictHostKeyChecking=no' ];
Code: Select all
$sftpOptions{more} = [ '-o'=>'StrictHostKeyChecking=no', '-l'=>'40' ];
Unfortunately, i get an error that connection to the server cannot be made. Anybody understand why this is happening?
The documentation at http://search.cpan.org/~salva/Net-SFTP- ... Foreign.pm mentions "Note that this option expects a single command argument or a reference to an array of arguments".