Thank you for the examples ...
Mit freundlichen Grüßen / Kind regards / Bien à vous,
Seán Courtney
-----Ursprüngliche Nachricht-----
Von: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxxxxxxxx] Im Auftrag
von Richard Schoen
Gesendet: Thursday, 16 February 2023 01:37
An: midrange-l@xxxxxxxxxxxxxxxxxx
Betreff: RE: sFTP
Here's an upload and download script sample for pysftp
https://github.com/richardschoen/PythonSamples/blob/master/ibmi/pysftpupload
.py
https://github.com/richardschoen/PythonSamples/blob/master/ibmi/pysftpdownlo
ad.py
It can be called from a CL/RPG job by using the QSHEXEC command I created to
run PASE jobs from classic IBM i jobs:
https://github.com/richardschoen/qshoni
Regards,
Richard Schoen
Web:
http://www.richardschoen.net
Email: richard@xxxxxxxxxxxxxxxxx
------------------------------
message: 5
date: Wed, 15 Feb 2023 17:16:07 +0100
from: "Sean Courtney" <scourtney@xxxxxxxxxxx>
subject: sFTP
Hello all,
I have been following up on the posts regarding sFTP and the following was
quoted by John Yeoug :
?You could also switch to using API-style programming with, say, Python and
pysftp. That tends to be much more flexible and less brittle.?
My question.. do you have a python example using pysftp ?
How are you invoking the call to your python script? are you calling it
directly via CLLE or are you running it as a service somewhere.
If you are invoking with CLLE or RPGLE then please post an example if
available.
Many thanks
Mit freundlichen Gr??en / Kind regards / Bien ? vous,
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit:
https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.
As an Amazon Associate we earn from qualifying purchases.