Reputation: 19
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?
Upvotes: 0
Views: 89
Reputation: 523
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_tabs
Either of the two should help
Upvotes: 1
Reputation: 202682
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:[email protected]/home/martin/
%UPLOAD% sftp://user:[email protected]/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:
Some references:
Upvotes: 0