Topic "MV command from Unix remote - file locking?"

Author Message
vasseurb

Guest


I want to use the MV command to GET files from a unix host to the local windows server, winscp is running on the windows server. There will be two servers running the retrieval process in parallel for redundancy, but I don't want both servers to try and move the same file.

I can't find anywhere in the documentation that describes whether winscp will put a lock on the source file on the unix server and if other winscp sessions will honor that lock if they see it.

Thanks
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
There's no lock. But you can do it like this:
- first move files that are there to different temporary remote directory, specific to retrieving machine (e.g. /tmp/retrieve1 and /tmp/retrieve2)
- download files from the temporary directory
Btw, mv command is for the first part (moving between two remote directories), to move files to local directory, use "get -delete".
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License