cancel
Showing results for 
Search instead for 
Did you mean: 

Running Shell Script in SFTP Channel as OS Command

0 Kudos

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?

Accepted Solutions (1)

Accepted Solutions (1)

former_member190293
Active Contributor
0 Kudos

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.

Answers (0)