By "process the file" do you simply mean "move it to another directory?" If so, you could use "ln" and "rm" cronjobs.
The following assumes you don't care if the in-transit file appears in the destination
while it's still being transferred, your source files are
uniquely named, the source and destination directories are
on the same filesystem, and that only
plain files exist in the source directory. These are a big assumptions since you didn't really tell us any details of your task. This example is for the simplest scenerio I can imagine, but maybe we've gotten lucky here and you really are dealing with this simple case!
cronjob that repeats every one minute:
Code:
ln /path/to/source/dir/* /path/to/destination/dir/ >/dev/null 2>&1
cronjob that repeats as needed for cleanup of files in source (this example deletes files over a day old):
Code:
find /path/to/source/dir -type f -mtime +1 -print | xargs rm -f >/dev/null 2>&1