On Fri, 18 Aug 2006 11:25:49 +0800, Reiner Tolentino <[EMAIL PROTECTED]> wrote:
> Hi guys,
> 
> I have a service that dumps some files (300MB each file) to my local
> directory, I have no control of this service! All I know is a service is
> dumping the files in that directory. And another service that gets the
> files dumped to other location for backup. My problem is, how can I know
> if the service that dumps the files were finish dumping these files so
> that I can copy the file for backup?
> 

top of my head, i would say a script that checks the modification time of the 
file. this is useful only if you can be sure that a file modification time of x 
(min | seconds) means that the file is ready for copying.

the rsync suggestion is also nice and efficient if it is applicable to your 
situation. :)

ciao!

-- 
"Programming, an artform that fights back"

Anuerin G. Diaz
Registered Linux User #246176
Friendly Linux Board @ http://mandrivausers.org/index.php
http://capsule.ramfree17.org , when you absolutely have nothing else better to 
do

_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph

Reply via email to