Loop in batch mode when timeout detected

Advertisement

Mayer
Joined:
Posts:
1
Location:
jm

Loop in batch mode when timeout detected

Hi all,
I execute winscp with this command in batch :
winscp.com /command <Eparker.ftp >Eparker.log

my script Eparker.ftp is :
open ftp://XXXX.PARKER.COM
XXXXXX
XXXXXX
option batch on
option confirm off
option reconnecttime off
lcd c:\wsta
put o-parker1490.snd
bye

It's work kindly but when there is a timeout, it loop :

winscp> open ftp://XXXX.PARKER.COM
Prompting for credentials...
Username: XXXXX
Password: XXXXXX
Connecting to XXXX.PARKER.COM ...
Connected with XXXX.PARKER.COM. Waiting for welcome message...
Connected
Starting the session...
Reading remote directory...
Session started.
Active session: [1] XXXX.PARKER.COM
winscp> option batch abort
batch abort
winscp> option confirm off
confirm off
winscp> option reconnecttime off
reconnecttime off
winscp> lcd c:\wsta
c:\wsta
winscp> put o-parker1490.snd
o-parker1490.snd | 0 KiB | 0,0 KiB/s | binary | 0%
Lost connection.
Timeout detected.

Copying files to remote side failed.

Entering Passive Mode (12,4,27,140,229,82)
(A)bort, (R)econnect (5 s): Reconnect :evil:
Prompting for credentials...
Username: bye
Password:
Authentication failed.
(A)bort, (R)econnect (5 s): Reconnect
Prompting for credentials...
Username:
Authentication failed.


WHAT I have to make to avoid the buckle of the attempts of reconnexion and that the program stops in error

Reply with quote

Advertisement

You can post new topics in this forum