cancel
Showing results for 
Search instead for 
Did you mean: 

Command Line is not executing using File Adpater

hsonnenahalli
Contributor
0 Kudos

Dear Experts-

I am working on a scenario which needs to zip all the files in the given folder along with .CSV file which is created using FILE Adapter using NFS protocol and deleted the files after zipping. This scenario has no mapping so using integrated configuration. I am using a command line to perform this task under option execute after message processing in FILE adapter. I have tested the command in PI by executing the program RSBDCOSO which opens up OS level access and it is working as expected, But the same command is not working when used FILE adapter in PI. I have checked the channel logs and it says Executed OS command but no action is happening in the folder. Please find the screen shots below.

Zip command: zip STATIC_FILENAME`date +%m%d%Y_%OH%OM%OS`.zip *|rm !(STATIC_FILENAME*.zip)

Works when executed in PI using program RSBDCOSO

Channel Log

Trouble shooting steps followed

Chekced the permission of the .CSV files : Looks good

Checked the channel logs: says OS executed

Checked  in NWA for FILE adapter traces not updating anything (not configure well)

Checked the blogs in SDN: Did not help much.

Please let me know how to resolve the issue.

Gray matters appreciated

Regards

HS

Accepted Solutions (0)

Answers (2)

Answers (2)

sunil_singh13
Active Contributor
0 Kudos

Hari,

Did you notice Return code is 2 when you executed RSBDCOSO?

What is operating System PI is running on?

Thanks,

Sunil

hsonnenahalli
Contributor
0 Kudos

Database ORACLE 11.2.0.2.0

vishal1889
Active Participant
0 Kudos

Hi Hari,

Can you provide screenshot of the channel where you have maintained this OS command and other processing parameters?

Also provide the details of OS you are using?

Regards

VJ

hsonnenahalli
Contributor
0 Kudos

Please find the detail below:

Receiver channel configuration

Database ORACLE 11.2.0.2.0