Skip to Content
avatar image
Former Member

Running Shell Script in SFTP Channel as OS Command

Hi,

We have a File to File scenario. But, we want to change permission of files placed on receiver end. We have created a shell script to change the file permission. On receiver channel we have added the command to run OS command after Message Processing.

It shows success at channel level but file permissions doesn't change at server level.

Does this shell script need to be put in PI server or it can run if placed on receiver server?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Nov 24, 2016 at 03:48 AM

    Hi Aprajita!

    As far as I know OS command is executed on your PI server. So your script should perform its own SFTP connection to target server, change file attributes and disconnect.

    Regards, Evgeniy.

    Add comment
    10|10000 characters needed characters exceeded