Topic "Number of connections not working?"

Author Message
Youri
[View user's profile]

Joined: 2016-02-02
Posts: 3
Hi,

I'm working on Win8, 64b

I want to download several websites by ftp in the command line interface. So therefore I script first 1 site, if this is working well I will add the other 150 sites

So first I created a batch file:

md n:\backupftp\ithaka.im\public_html
winscp.exe /script="ithaka.txt" /ini=WinScp.ini /log=log.txt

Then the content of the script file
open ftp://xxxx:xxxxx@ftp.ithaka.im/domains/ithaka.im/public_html
lcd n:\backupftp\ithaka.im\public_html
get *.*

Everything is working good, but only with 1 connection. So I opened the GUI. Set I looked in the manuals and did:
Set transfer in background to yes
Enable que processing by default.

In the GUI interface it is working well. In the cmd line version not. I looked into the help sections, google etc etc but cannot find it.

Is the cmd line version supporting this or should I do something else? How to get it running with 8 connections....

For me it doesn't matter what kind of interface is displayed. As long as I can all command by script.

Any support will be appreciated.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
You didn't tell us what you did to script multiple connections.

Sure it is possible, just repeat the same script for all connections.

Or actually see
http://winscp.net/eng/docs/script_upload_multiple_servers
Youri
[View user's profile]

Joined: 2016-02-02
Posts: 3
prikryl wrote:
You didn't tell us what you did to script multiple connections.


I did: i opened the GUI and set the options as described here:
https://winscp.net/eng/docs/transfer_queue

As the GUI uses the same ini file these options should be used in the cmd line version. But I get the feeling the cmd line version is not displaying it or I should do it differently.

It is not about 10 connections to 10 servers. It's is about 10 or 8 connections to the same server.

Ps: you wrote a nice peace of software !
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
OK, so you want that single script to run over multiple parallel connections, right? It's not supported in scripting.
_________________
Martin Prikryl
Youri
[View user's profile]

Joined: 2016-02-02
Posts: 3
prikryl wrote:
OK, so you want that single script to run over multiple parallel connections, right? It's not supported in scripting.


Thxs, clear.

Can I give the scripting commands to the GUI interface. So the interface is displayed in a window and is doing this task? Is that supported?

For me it doesn't matter if I see a dos window or GUI interface as long as I can put the command by scripting to the tool. The number of websites I want to backup is growing and the scripts command will be generated from a database ...
Guest




Hi Mike,

Thxs for your feedback here and on superuser.

To make it more clear. I want more the one connection to one single ftp server with the use of scripting.
The cmd line version is not supporting this. That's clear. So I now use the .exe file but I cannot get this work. I now have:

Download.bat
md n:\backupftp\ithaka.im\public_html
winscp.exe /script="ithaka.txt"

And the Ithaka.txt scirpt file
open ftp://xxxx@ftp.ithaka.im/domains/ithaka.im/public_html
lcd n:\backupftp\ithaka.im\public_html
get *.*


I can see in the windows task manager that it is running. I do not see any interface anymore (no dos box, no GUI). If i turn on logging to a file I can see 1 connection to 1 server.

I only get it working when I use drag en drop in the GUI, so I guess the only question left is....

Can it be possible that winscp will download parallel connections from 1 single ftp server other then the drag and drop methode?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
As I wrote already parallel transfers are not supported in scripting. Nor you can control the GUI queue from a command-line..

You can though create a number of batches (with different sets of websites) and run those in parallel.

See http://winscp.net/eng/docs/library_example_parallel_transfers
And my answer on http://superuser.com/a/1036128/213663
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