OT: using pscp to *move* files
Jay R. Ashworth
jra at baylink.com
Mon Jul 16 13:35:00 PDT 2007
On Mon, Jul 16, 2007 at 03:57:39PM -0400, Kenneth Brody wrote:
> Quoting Jay R. Ashworth (Mon, 16 Jul 2007 15:18:24 -0400):
> [...]
> > Non-atomicity: I can't just have teh windows side say "delete
> > everything" after I've grabbed everything, as I'll end up with a race
> > condition -- if the Unix side drops a new packet, it will get eaten.
>
> Yes, my first thought was ftp's "mget" followed by "mdel", but that
> wouldn't work if a new file appeared.
>
> [...]
> > So I need either a -d option to pscp (which doesn't appear to exist),
> > *or* I need to punt and go back to figuring out why Samba stopped
> > working between these two boxes (at which point I can go back to a
> > drive letter and ren).
>
> Can't you use pscp to get a directory listing, and then get/delete
> the files one at a time? That eliminates any race condition with new
> files appearing after the gets.
There are lots of ways I could do this, if I was permitted to specify
scripting on the Windows side. But I can't.
Cheers,
-- jra
--
Jay R. Ashworth Baylink jra at baylink.com
Designer The Things I Think RFC 2100
Ashworth & Associates http://baylink.pitas.com '87 e24
St Petersburg FL USA http://photo.imageinc.us +1 727 647 1274
More information about the Filepro-list
mailing list