OT: using pscp to *move* files
Kenneth Brody
kenbrody at bestweb.net
Mon Jul 16 12:57:39 PDT 2007
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.
--
KenBrody at BestWeb dot net spamtrap: <g8ymh8uf001 at sneakemail.com>
http://www.hvcomputer.com
http://www.fileProPlus.com
More information about the Filepro-list
mailing list