On a Linux server, data Files will be dumped continuously in a directory after intermittent intervals say of 5 or 10 or even 15 minutes. I want to preprocess/cleanse these files one by one and SCP to some other server.
How should I process all these files recursively?
Should I write a single bash script, which will run continuously and process files recursively in that directory? Or should I schedule a script to run after each 10 minutes?
For a single continuously running script what should be the loop condition? or an infinite while loop?