× 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.



This may be a case of sticking with what I know but why not make your RPG program into a SQL UDF and then any ODBC/JDBC program could connect to the IBM I and get a result?

-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of smith5646midrange@xxxxxxxxx
Sent: Friday, February 1, 2019 3:26 PM
To: 'Midrange Systems Technical Discussion' <midrange-l@xxxxxxxxxxxx>
Subject: Calling a program on the i via OpenSSH

I have no clue what I am really talking about here so please bear with me.
My end goal for this request is for a Windows server to connect to an IBM I and issue the command and receive the results without any user intervention via a "windows script".



I already have OpenSSH running on the i and I can log in with PuTTY.



Now my request.



Can anyone provide a sample program (or point me to one), preferably written in RPGLE that can be run on the iSeries from a Windows 10 PuTTY session and have it return data back to the PuTTY session? I would be OK if it just returned "Hello World". In the real world, I will need to generate data and return it to the caller but Hello World would get me started.



Just in case my request is not clear (because I don't know 100% what I am asking for), here are the steps I think I need.

1. Start PuTTY on a Windows 10 machine
2. Connect to my IBM i
3. CALL HELLOWORLD on the IBM I <-- if you can provide the correct
syntax too, that would be great
4. See "Hello World" in my PuTTY window.



--
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@xxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link: https://amazon.midrange.com

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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

This mailing list archive is Copyright 1997-2024 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.