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



1) with command "system" you can call your RPG program or any command from
PASE :

system "WRKACTJOB"

2) Using PuTTY you can create a command script and call from command line
or .bat/.cmd script:

Putty user@myserver -pw <password> -m c:\myscripts\dosomething.pty

And you are done

El vie., 1 de feb. de 2019 14:26, <smith5646midrange@xxxxxxxxx> escribió:

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

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.