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
|Thread Tools||Search this Thread|
|More UNIX and Linux Forum Topics You Might Find Helpful|
|Thread||Thread Starter||Forum||Replies||Last Post|
|Advice on script||satimis||Shell Programming and Scripting||0||04-10-2010 11:56 PM|
|Script Help/Advice||earnstaf||Shell Programming and Scripting||14||10-11-2007 05:53 PM|
|Script Advice please?||earnstaf||Shell Programming and Scripting||12||06-18-2007 04:55 PM|
|Advice on Script||greengrass||Shell Programming and Scripting||4||02-10-2007 11:49 PM|
|first script. need help and advice.||sanchopansa||Shell Programming and Scripting||17||10-07-2006 07:25 AM|