cancel
Showing results for 
Search instead for 
Did you mean: 

sending 0Byte file after delivering 5batch files to target SFTP server

Former Member
0 Kudos

Hello,

The five interfaces are PROXY to SFTP. We are sending 5 different batch files to a legacy system. After they placed in the target folder (all to same folder) we need to send a 0 byte file / empty file to the target system, which will be the conformation file that the batch process completed and all files delivered to the target folder. The batch process will be run for every 15 minutes.

How to perform this task. Do we need to use BPM? We are using PI 7.3

Accepted Solutions (1)

Accepted Solutions (1)

gagandeep_batra
Active Contributor
0 Kudos

Hi Naveen,

It think OS command will not work in FTP/SFTP it only work for NFS.

IMO you can create one more interface after with empty message which will trigger after five interface and you can use EOIO for that.

Regards

Gagan

Answers (2)

Answers (2)

Former Member
0 Kudos

Does anyone would give your valuable suggestions

Former Member
0 Kudos

Hi Naveen

In the remote SFTP server - is that WINDOWS or Unix Box.

Based on that and the expected size of the files once they have been transferred there , we can have a automated script to check and create an empty file for transferring it to the sender ..

Is this the type of solution you are looking ?

Thanks

Rishi

Former Member
0 Kudos

Hi Rishi,

No, that is not the requirement Rishi. After sending 5 files to the SFTP, 6th file will be the empty file to the receiver as confirmation saying all the 5 files delivered sucessfully. The 6th file will act as the tigger file for the further process for the script at the receiver.

iaki_vila
Active Contributor
0 Kudos

Hi Naveen,

You can use the option to write a OS command after the execution. In this batch file you should check the five files and to create a new empty file if all is right.

Regards.

Former Member
0 Kudos

Hi Vila,

Yes you are correct, we need to check whether all batch files reached the target location and send a new empty file.

But is there any other option apart from OS command? since right now we dont have unix porfessional. Or can you guide me how to use the OS command?