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



Nope. On my system, unless the IFS is mapped as a drive to the PC, I get
the DOS box with the message 'Access denied'. The directory in which the
pdf is stored is defined as *RWX authority for *PUBLIC and has all
authorities.
And I am using the fully qualified path...

strpccmd pccmd('\\192.168.0.3\root\pdf\stitch.pdf') pause(*yes)


Best Regards,

Thomas Garvey



-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Charles Wilt
Sent: Thursday, September 11, 2008 3:36 PM
To: Midrange Systems Technical Discussion
Subject: Re: Any experience with RUNRMTCMD?

On Thu, Sep 11, 2008 at 3:13 PM, Thomas Garvey <tgarvey@xxxxxxxxxx> wrote:
I have tried the STRPCCMD and finally got it to work, but it's clunky
in that it first brings up a DOS window (with nothing in it) and then
finally displays the pdf document. When the PDF document is closed,
the DOS window shows the message 'Press any key to return' and the
user must press Enter again to return to whatever was happening in the
green screen session.

In iSeries Access for Windows Properties, there's a tab: Incomming Remote
Command.
One option is the command mode. Play with the options there (sorry its been
years since I set mine up at a prior job) . You might also look at the
various Windows command line options.

Worse, it doesn't work unless the PC user has previously mapped the
IFS as a drive in Windows Explorer.

Not true. simply use a fully qualified path start with your iSeries
NetServer name.
\\MySysI\ShareName\Directory\myfile.pdf


I've also looked into trying to use a browser for the pdf document,
but that requires an HTTP server to be running, which I also can never
guarantee.
I'm am intriqued by your idea of showing the pdf file's path as a URL
and allowing the user to click on it. I wonder what configuration
would be required for that (other than the availability of the browser
program). I think I've seen this done at a client site on their
internal network. Can you enlighten me or direct me to an example?

Just turn it on under from the 5250 session, Edit-->preferences.


Thanks for your advice.

Best Regards,

Thomas Garvey



-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Charles Wilt
Sent: Thursday, September 11, 2008 12:44 PM
To: Midrange Systems Technical Discussion
Subject: Re: Any experience with RUNRMTCMD?

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.

HTH,
Charles

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

Here's the latest attempt...
RUNRMTCMD CMD('notepad.exe') RMTLOCNAME('192.168.1.218' *IP)

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 is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take
a moment to review the archives at http://archive.midrange.com/midrange-l.


--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take
a moment to review the archives at
http://archive.midrange.com/midrange-l.


--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe,
or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/midrange-l.



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.