LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Help with a Directory Compare Script (https://www.linuxquestions.org/questions/linux-general-1/help-with-a-directory-compare-script-43977/)

bullfrog 02-03-2003 09:28 PM

Help with a Directory Compare Script
 
Hi guys, i really need your help in this one. What i need to do is pretty much monitor the contents of FolderA (which is empty). if a file has been copied into the folder, move the file to FolderB.

Here comes the dilemma.
the script needs to run in crontab as it needs to check the folder every minute. It needs to do a checksum to see if a file copied into folderA is complete or is it still getting copied accross. It will only move the file into FolderB once it has been fully copied accross.

Dilemma two.
FolderB is also empty. FolderB can only hold one file at a time. Meaning if two or more files are copied into FolderA only one can be moved accross to FolderB with the rest put on hold in FolderA. Once the file is moved out of FolderB can the next file be moved into it. How folderB moves the file out is not something i need to worry about. Can anybody out there help me on this one?

Any help on this would be greatly appreciated.

peeples 02-04-2003 08:05 AM

If this is a homework assignment, we don't do it for you (show up what you have so far, and we'll give you pointers on how to proceed).

If you are actually trying to do this, give more information about what exactly you are trying to accomplish...


All times are GMT -5. The time now is 11:49 AM.