Topic "Qustion regarding robustness of batch script"

Author Message
Guest

Guest


Hi there,
we are using a batch file like this:
Code:
option echo on
option batch abort
option confirm off
option reconnecttime off
option transfer binary
open user_id@host
cd remote_dir
lcd local_dir
put local_file
ls
exit


When we run that in batch mode using winscp.com and if the transfer fails for whatever reason, winscp retries, despite the fact that "option batch abort" and "option reconnecttime off" has been set.
We have fixed this disabling everything in "Preferences" - "Endurance" - "Automatic reconnect".

Is this the way it should be? Wouldn't it be better if the batch parameters over rule the setting in "Preferences".

Thanks for your thougts,
Tilo
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
Guest wrote:
Is this the way it should be? Wouldn't it be better if the batch parameters over rule the setting in "Preferences".

The batch parameter governs unrecoverable errors only.
_________________
Martin Prikryl
Guest




prikryl wrote:
Guest wrote:
Is this the way it should be? Wouldn't it be better if the batch parameters over rule the setting in "Preferences".

The batch parameter governs unrecoverable errors only.


Hi Martin,
thanks for your reply. Regarding:
Code:
option reconnecttime off

Should this option not overrule the settings in "Preferences"? Sorry, if I misunderstood you.

Thanks,
Tilo
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
Anonymous wrote:
Should this option not overrule the settings in "Preferences"? Sorry, if I misunderstood you.

Yes it should.
_________________
Martin Prikryl
Guest

Guest


prikryl wrote:
Anonymous wrote:
Should this option not overrule the settings in "Preferences"? Sorry, if I misunderstood you.

Yes it should.


Hmm, but to me it seems, that it doesn't. Could you have a look at it? Or should I provide a test scenario?

Thanks,
Tilo
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
Guest wrote:
Or should I provide a test scenario?

Please do.
_________________
Martin Prikryl
g24ftp
[View user's profile]

Joined: 2010-07-05
Posts: 18
prikryl wrote:
Guest wrote:
Or should I provide a test scenario?

Please do.


Hi Martin,
I've sent a test scenario to your e-mail address.

Regards,
Tilo
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