Qustion regarding robustness of batch script

Advertisement

Guest
Guest

Qustion regarding robustness of batch script

Hi there,
we are using a batch file like this:
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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,517
Location:
Prague, Czechia

Re: Qustion regarding robustness of batch script

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.

Reply with quote

Guest

Re: Qustion regarding robustness of batch script

martin 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:
option reconnecttime off
Should this option not overrule the settings in "Preferences"? Sorry, if I misunderstood you.

Thanks,
Tilo

Reply with quote

martin
Site Admin
martin avatar

Re: Qustion regarding robustness of batch script

Anonymous wrote:

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

Reply with quote

Guest
Guest

Re: Qustion regarding robustness of batch script

martin 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

Reply with quote

Advertisement

martin
Site Admin
martin avatar

Re: Qustion regarding robustness of batch script

Guest wrote:

Or should I provide a test scenario?
Please do.

Reply with quote

g24ftp
Joined:
Posts:
17

Re: Qustion regarding robustness of batch script

martin 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

Reply with quote

Advertisement

You can post new topics in this forum