If you use it combined with Net::OpenSSH you will be even able to reuse the same SSH connections from all the threads:
use Net::OpenSSH; my $ssh = Net::OpenSSH->new($host, user => $InboundParameters[3], password => $InboundParameters[4]); # then from the threads call... sub sftp_task { my $sftp = $ssh->sftp; $sftp->mkdir("ftp2SAT5"); ... }
In reply to Re: Perl SFTP do_mkdir not able to create directory
by salva
in thread Perl SFTP do_mkdir not able to create directory
by skylinedreamer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |