Question

I have to upload few files from my Windows machine to different Unix boxes using WinSCP software at regular intervals.

The pain is that let's say I have 4 different Unix boxes so in WinSCP I have to open that 4 different Unix boxes individually, to upload the files.

Please advise is there any software through which I can graphically open the four Unix boxes simultaneously and upload the files to the same location?

Was it helpful?

Solution 2

Just create a batch file that connects and uploads a file to all hosts sequentially.

With WinSCP scripting the batch file can be like:

@echo off
set UPLOAD=winscp.com /command "open %%1%%" "put ""%1""" "exit" /parameter
%UPLOAD% ftp://martin:password@server1.example.com/home/martin/
%UPLOAD% sftp://user:password@server2.example.com/home/user/

Now you can call the batch file (say multiupload.bat) with a file path as an argument:

multiupload.bat c:\path\upload.txt

You can even drop/link the batch file in Explorer's "SendTo" folder to easily use it from the Explorer's "Send To" menu:

Send To Multipload

Some references:

OTHER TIPS

Open 4 tabs in WinScp?

Or

Write a script to scp them from 1 on the Unix machines to the rest of the Unix machines?

Adding more info:

http://winscp.net/eng/docs/transfer_queue http://winscp.net/eng/docs/ui_sessiontabs

Either of the two should help

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top