A couple of thoughts....

Incoming remote command is designed for batch jobs. IMHO, it's not
the best choice for interactive applications. But if you really want
to use it, you need to make sure the "iSeries Access for Windows
Remote Command" is set up with Log on as: [Local account] and that the
[Allow service to interact with desktop] is checked. In addition, the
user name and password you send with RUNRMTCMD has to match the User
currently logged into Windows.

If you are using IBM's 5250 emulation, a better choice is the
STRPCCMD. That sends the command through the 5250 session that
executes teh STRPCCMD, so no need to worry about IP's or user ids.

Lastly, most 5250 emulation programs can be configured to recognize
and open URL's. So you may be able to just display the .PDF file's
path as a URL and have the user click it.


On Thu, Sep 11, 2008 at 11:32 AM, Thomas Garvey <tgarvey@xxxxxxxxxx> wrote:
Anybody have experience with using the RUNRMTCMD command?

I'm trying to start the Adobe Acrobat Reader, and have it open a specific
pdf file stored in an IFS directory, but I keep getting the same results.
It waits about 1 minute before doing anything and then returns CPE3425 (A
remote host refused an attempted connect operation).

Now, I know the RMTLOCNAME is supposed to have the IP address of the PC I'm
trying to communicate with. So, I have included in my program the use of
the system API (QDCRDEVD) which returns the IP address of the device with
which I am communicating. I've tried the simplest of commands with the same

Here's the latest attempt...

Thanks for any suggestions.

Best Regards,

Thomas Garvey

This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.

This thread ...


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

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