STRPCCMD shows a window RUNRMTCMD does not

360 pts.
Tags:
AS/400
STRPCCMD
When I run STRPCCMD to open a .pdf file via Adobe, it displays my .pdf in a window. If I run it using RUNRMTCMD, all I get is spool file saying The remote command has produced no output. Here are the commands I run

===> RUNRMTCMD CMD('rundll32 shell32,ShellExec_RunDLL "@transfercolor chart 2010.pdf"') RMTLOCNAME('192.168.10.203' *IP)                                    

===> STRPCCMD PCCMD('rundll32 shell32,ShellExec_RunDLL "@transfercolor chart 2010.pdf"')                                                                                         

My real path is very long and STRPCCMD will not work. RUNRMTCMD allows a much longer command.

 

Answer Wiki

Thanks. We'll let you know when a new response is added.

<i>…all I get is spool file saying The remote command has produced no output.</i>

That would be the expected spooled output since most PDF viewers don’t write any text to standard output.

However, the lack of any displayed PDF window would first indicate that the Remote Command service isn’t allowed to interact with the desktop. If you are using iSeries Access Incoming Remote Command service, review the service Properties and check to see if the Log On tab has ‘Allow service to interact with desktop’ checked or not.

Also, your example command does not indicate that you are using any kind of logon user ID/password. That is an incredibly insecure and risky behavior. Anyone can send any command to that IP address and have it execute if those are not really being used.

Tom

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • CoderHal
    The properties for CA does not have the option: Log On tab has 'Allow service to interact with desktop' checked or not. What level CA do you need to get this option.
    360 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following