× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.

Here's an upload and download script sample for pysftp



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:

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,

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2023 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.