HP3000-L Archives

November 2002, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Ken Hirsch <[log in to unmask]>
Reply To:
Ken Hirsch <[log in to unmask]>
Date:
Thu, 21 Nov 2002 14:19:18 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (23 lines)
Wirt writes:
> Ken writes:
> >  Even better is to rename the file, which is an atomic operation.  You
have
> >  to make sure that the rename will succeed (same volume/file
system/etc).
>
> Unfortunately, that's not possible if you don't either know the name of
the
> file you're looking for or there are likely to be multiple files in the
> watched folder.

I mean that whoever is creating the file does the rename, not who is
downloading it.  Right now you are using a program to create
DATA001.WORKGRP, then you copy it to DATA001.FTPGRP.  Instead, just RENAME
DATA001.WORKGRP,DATA001.FTPGRP.  Or, if you want to keep the original or the
two groups are not on the same volume, you may have to
COPY DATA001.WORKGRP,DATA001.TMPGRP
RENAME DATA001.TMPGRP,DATA001.FTPGRP

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2