ExecuteCommand on IBM AS400

Advertisement

davidcornelius
Joined:
Posts:
1

ExecuteCommand on IBM AS400

I have a remote command that works from the console but does not work from a script

Remote command
RCMD call qsnddtaq ('BCT213' 'CERES4DTDO' x'00128F' 'GO')
This is using FTP onto and IBM AS400
They at present use DOS ftp scripts and this command is run after a file transfer occurs.

When this runs from using
$rmtcommand = "RCMD call qsnddtaq ('BCT213' 'CERES4DTDO' x'00128F' 'GO')"        
$session.ExecuteCommand($rmtcommand)
I get the following error
Output      :
ErrorOutput :
ExitCode    : 0
Failures    : {WinSCP.SessionRemoteException: Specified directory does not exist or cannot be accessed.
              Working directory not changed.}
IsSuccess   : False
AS I am not needing a directory, I can't see how to fix this.

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum