cancel
Showing results for 
Search instead for 
Did you mean: 

File attributes problem

Former Member
0 Kudos

Hi,

Whenever the user places their file in the input file location it is with rw-r-r. PI is not able to pick up the file.

PI is able to process the file which atleast has the attributes rw-rw-r.

is there any automated way to change the file attributes so that PI can process the file

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

i think you can use a file adapter feature called "Run Operating System Command Before message processing"" and excute a unix shell script to change the mode of the file first and then pick the file using the file adapter.

Refer the following blogs and links for more information:

/people/sameer.shadab/blog/2005/09/21/executing-unix-shell-script-using-operating-system-command-in-xi

/people/santhosh.kumarv/blog/2008/07/27/glimpse-at-os-command-yet-another-scenario

/people/michal.krawczyk2/blog/2005/08/17/xi-operation-system-command--error-catching

Regards,

Puneet

Former Member
0 Kudos

Hi puneet,

The OS commands will be executed only after executing the communication channel(after the file is picked up).

So i dont think so writing OS commands will suffice.. for this issue.

Babu

Former Member
0 Kudos

Hi,

From PI side, u cannot do anything, because it can access only those files which have permission to access.

So u can write a batch, which will poll and changes the permissions of the files present in a directory.

Babu

Former Member
0 Kudos

Hi Babu,

Can you please let know how to write a batch, which will poll and changes the permissions of the files present in a directory

Former Member
0 Kudos

Jus clicked the button "Process read-only files" which is present in the Processing tab so that it processes RW-R-R files.