in reply to Perl SFTP do_mkdir not able to create directory
Use Net::SFTP::Foreign instead.
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"); ... }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Perl SFTP do_mkdir not able to create directory
by skylinedreamer (Novice) on Apr 09, 2013 at 02:07 UTC | |
by salva (Canon) on Apr 09, 2013 at 07:55 UTC | |
by skylinedreamer (Novice) on Apr 15, 2013 at 02:29 UTC |
In Section
Seekers of Perl Wisdom