cancel
Showing results for 
Search instead for 
Did you mean: 

how to set target file as read only

manikandan_shanmugam3
Active Participant
0 Kudos

Hi All,

Scenario: File to file.

I need to set target file as read only when PI places file in to target folder.

Regards,

Mani

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Mani,

In receiver PI channel, under the processing tab-> there is an option to "Run OS command After message processing".

Once the PI channel completes writing file to target directory then OS Command written here will be executed.

You can use this option to change the permission to ready only by using the below script for unix OS.

chmod 444 %F

Hope this helps.

Regards

Ram

praveen_sutra
Active Contributor
0 Kudos

Hi Manikandan,

Just to add few more cents to Ram's reply.

you can create a batch file(windows system) or shell script(linux system) and call that from the "Run OS command After message processing" option.

this will help you to select few files in the folder.

hope this helps.

thanks and regards,

Praveen T