350 pts.
 STRPCCMD shows a window RUNRMTCMD does not
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.

 



Software/Hardware used:
ASKED: March 29, 2010  10:01 PM
UPDATED: March 31, 2010  11:19 AM

Answer Wiki:
<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
Last Wiki Answer Submitted:  March 30, 2010  9:46 pm  by  TomLiotta   110,175 pts.
All Answer Wiki Contributors:  TomLiotta   110,175 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

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.

 350 pts.