Sukhster has asked for the wisdom of the Perl Monks concerning the following question:
Hi All,
<< First Time Post >>
I have been using Perl for some years, but mostly for Regex/ DBI usage and would like to use it provide a solution for sending files over SFTP via a REST API. The reason for this is that we need to send a couple of thousand files to a remote server, which has the following restriction on the SFTP connection:
The team is working on a Java Spring solution to the above . . .. but it taking ages, and l would like to ensure that we have a solution and Perl has always been a faster dev curve for me.
I believe that l need to following:
I can see quite a few Server libraries, which do 1 and 5 above - but don't understand how l could share an Object (pool of SFTP connections between them) ... and then more importantly, how l can ensure that there is a thread/while-loop keeping the connection alive.
If libraries/ approach can be provided with code samples or pseudo code - that will really help get me started.
Help Ye Old Perl Monks of Lore !
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: REST API with SFTP Pooling
by salva (Canon) on Nov 12, 2020 at 11:20 UTC | |
by Fletch (Bishop) on Nov 12, 2020 at 14:27 UTC | |
by salva (Canon) on Nov 13, 2020 at 09:02 UTC | |
by Sukhster (Sexton) on Nov 14, 2020 at 05:44 UTC | |
by salva (Canon) on Nov 14, 2020 at 06:38 UTC | |
by Sukhster (Sexton) on Nov 16, 2020 at 15:01 UTC | |
by salva (Canon) on Nov 16, 2020 at 16:05 UTC | |
|
Re: REST API with SFTP Pooling
by Sukhster (Sexton) on Nov 14, 2020 at 06:03 UTC |