in reply to Re: Net::SSH2 issue in thread
in thread Net::SSH2 issue in thread
Then I create my threadsuse Net::SSH2;
In my file_work sub I call the sftp_file if the file is found and supply the required argumentsmy $work_q = Thread::Queue->new(); my $thr = threads->new( 'file_worker', $work_q );
my $retval = sftp_file($file,$destfile,$host,$port,$user,$privpath,$pu +bpath,$pass);
|
|---|