cancel
Showing results for 
Search instead for 
Did you mean: 

File Watcher/Notifier - Design Question

Former Member
0 Kudos

I am considering a scenario that just scans a directory and notifies via email if any files exist. Pretty simple to do with a few unix commands, but what is the best way with PI?

I figure a file comm channel in test mode and then an SMTP receiver. Problem is, you would get an email for every file that exists....even if you just run it once on a schedule.

Do I need to use BPM and collect files...then send a single email? I was hoping to avoid BPM for such a task.

Thanks,

Keith

Accepted Solutions (1)

Accepted Solutions (1)

former_member181962
Active Contributor
0 Kudos

Okay how about this?

have a java code for file existence check.

something like

File file=new File;

if(file.exists())

have this code as an adapter module?

errr..looks like i'm complicating things..;)

Regards,

Ravi

Answers (2)

Answers (2)

Former Member
0 Kudos

used BPM

former_member181962
Active Contributor
0 Kudos

Hi Keith,

Can you give us a bigger picture of your scenario?

Regards,

Ravi Kanth Talagana