Quantcast
Channel: Sysinternals Forums
Viewing all articles
Browse latest Browse all 10386

PsTools : PSExec

$
0
0
Author: Jim
Subject: PSExec
Posted: 25 April 2013 at 2:17pm

I am working a problem on an iSeries box (AS400) V6R1 usingthe RUNRMTCMD to pass instructions to a Windows 7 client and must use PsExecV1.98. It appears there is a string limitation of 115 characters and I don’t meanthe PsExec parameter length. If I pass the following string from a DOS promptit works as needed…

Example: psexec \\ xx.xx.x.xx -u id -p pwd -i cmd /c C:\JSLIB\OEMC#XX.EXE12345678 $107.33 $25.00 $15.55 $5.32 $153.20 Y

But if I use it in the RUNRMTCMD it truncates the string betweenthe “$153.20” and the “Y”. That is to say the “Y” is truncated.  I played with the string which is variable inlength by using larger dollar amounts pushing the total length farther out andit consistently truncated to 115 characters.

Example: RUNRMTCMD CMD (psexec \\ xx.xx.x.xx -u id -p pwd -i cmd /c C:\JSLIB\OEMC#XX.EXE12345678 $107.33 $25.00 $15.55 $5.32 $153.20 Y) RMTLOCNAME(&P_CLNTIP *IP) RMTUSER(&RMTUSER)RMTPWD(&RMTPWD) CCSID(437)

Does anyone have an idea what could be the problem here?


Viewing all articles
Browse latest Browse all 10386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>