Skip to Content

Receiver adapter OS command does not invoke script

Hi All,

I have requirement similar to the one in this thread:

shell-script-not-getting-invoked-in-file-adapter

Requirement:

PI need to pick the file from source directory on PI server which is Windows 2003 and send it to target directory using SFTP.

I'm using PSCP command for this purpose.

When I run the PSCP script from command prompt on PI server on Windows 2003, script is working fine.

Same batch file is called from PI File adapter but script is not getting invoked.

In the communication channel logs, "Executed OS command" is available. There are no Error/Warning messages in the log.

NFS transport protocol is used in the File communication channel.

Complete directory path of the batch file is mentioned in File channel -> Run Operating System command after message processing. Also tried giving timeout in seconds but still not working.

Command line in Receiver file adapter:

C://Outbound/SCPtest.bat %F SFTPserver.com:/dir/test

Please let me know if anyone has experience on this and tested successfully.

Thanks,

John

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Jan 27, 2012 at 11:03 PM

    hi,

    any chance you can use the info from my blog to catch the error ?

    https://blogs.sap.com/?p=40675

    Regards,

    Michal Krawczyk

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 27, 2012 at 10:01 PM

    Hi John,

    Did you try the solution provided in the thread you linked? Are you absolutely sure your PI user has sufficient authorization in the target SFTP server? Note that also in Geetha's case the script was executed successfully on OS level, but not from PI.

    Hope this helps,

    Greg

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.