Subject: Fw: Copying a file from one box to another
To: None <port-i386@netbsd.org>
From: Amir Nazary <anazary@imagepower.com>
List: port-i386
Date: 07/18/1999 13:52:09
----- Original Message -----
From: Amir Nazary <anazary@imagepower.com>
To: David Maxwell <david@fundy.ca>
Sent: Sunday, July 18, 1999 1:51 PM
Subject: Re: Copying a file from one box to another


> The problem is not NT (I never thought I would hear myself say that).  The
> problem is that I have a cron job that polls a directory periodically for
> the existence of files.  Unfortunately, I don't know if the file is
> completed when the cron job sees it.  I need to test to see that the file
> isn't still being written to when the poller sees it and trys to move it
> elsewhere.
>
> And now, I will unsubscribe myself for my first sentence.
>
> ----- Original Message -----
> From: David Maxwell <david@fundy.ca>
> To: David Brownlee <abs@anim.dreamworks.com>
> Cc: Amir Nazary <anazary@imagepower.com>; <port-i386@netbsd.org>
> Sent: Saturday, July 17, 1999 6:04 PM
> Subject: Re: Copying a file from one box to another
>
>
> > On Sat, Jul 17, 1999 at 12:21:51PM -0700, David Brownlee wrote:
> > > If you can configure the NT box, set it to rename the file after
> > > copying with a certain extension - and only pickup files with
> > > that extension.
> >
> > Knowing NT, it won't be that convienient.
> >
> > How about using find (or your favorite scripting method) to pick all
> > files that haven't been modified in 2 (pick a number) minutes? As
> > long as NT doesn't freeze up for more than that long (_and_ recover)
> > that should do what you need.
> >
> > --
> > David Maxwell, david@vex.net|david@maxwell.net --> Mastery of UNIX, like
> > mastery of language, offers real freedom. The price of freedom is always
> dear,
> > but there's no substitute. Personally, I'd rather pay for my freedom
than
> live
> > in a bitmapped, pop-up-happy dungeon like NT. - Thomas Scoville
>