Skip to Content

Running Shell Script in SFTP Channel as OS Command

Nov 17, 2016 at 02:08 PM


avatar image
Former Member


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?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Evgeniy Kolmakov 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.

10 |10000 characters needed characters left characters exceeded