Script advice

All

I have 2 parent directories - input and output. Each parent has multiple sub-directories...each sub-directory has multiple files. Each parent directory structure is a mirror image of itself

I need to poll the imput directory and if a new file is found, encrypt the file, move the file to its mirror image (output directory) and then delete itself from the input directory

I apprciate I can use cron to poll the directories and use find to list the files but what would be an elagant solution to this request.

This is what I think I can do so-far .....

<at parent directory>find . -type f -mtime -l -exec <encript file> | -exec mv
... but how do I mv the file to its mirror image directory location ?

Any advise / solution would be great

Thanks in advance

Are you on Linux?
See incron, based on inotify.
--
Bye

OS is solaris 5.10