LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 02-03-2003, 10:28 PM   #1
bullfrog
LQ Newbie
 
Registered: Feb 2003
Posts: 1

Rep: Reputation: 0
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.
 
Old 02-04-2003, 09:05 AM   #2
peeples
Member
 
Registered: Sep 2002
Location: Wichita Falls, TX
Distribution: tried a lot of 'em, now using kubuntu
Posts: 180

Rep: Reputation: 30
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...

Last edited by peeples; 02-04-2003 at 09:10 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Bash script to compare dir contents Boffy Programming 2 08-02-2005 07:08 AM
Directory Tree Compare/Sync for Linux Burgin Linux - Software 0 05-29-2004 10:27 PM
Need text pattern compare script kscott121 Linux - Software 4 05-10-2004 02:13 PM
directory compare tmoorman Linux - Newbie 2 09-26-2003 02:45 PM
Best way to compare 2 directory heirarchies? Electrode Linux - General 1 11-14-2002 11:36 PM


All times are GMT -5. The time now is 04:58 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration