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



Hi Michael,

Michael Ryan wrote:
> I don't seem to be able to get it to work - I'm
> getting a -1 on the rexec() call. Anyone have working code and could
> provide a sample? Thanks...

You didn't specify which programming language... I've written two articles that demonstrated the rexec() API in ILE RPG. They are available at the following links (you need a Pro or ProVIP membership with SystemiNetwork.com):

Run Remote Commands with RExec
http://www.systeminetwork.com/article.cfm?id=18971

Rexec API by IP Address
http://www.systeminetwork.com/article.cfm?id=50809


The following are links to the source code downloads for the articles. They demonstrate the API, and (if I'm not mistaken) you can download this code even if you don't have a System iNetwork membership:

http://www.iseriesnetwork.com/noderesources/code/clubtechcode/RexecDemo.zip
http://www.pentontech.com/IBMContent/Documents/article/50809_18_RexecRev.zip

If you'd like to discuss this further, let's move over to RPG400-L (or C400-L if that's more appropriate).

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.