Winscp script hangs when wrong .ini session password used

Advertisement

chli24
Joined:
Posts:
4
Location:
Sweden

Winscp script hangs when wrong .ini session password used

Hi!
I'm facing the same problem as in:
https://winscp.net/forum/viewtopic.php?t=1859

I have a script that uses a .ini stored session and when the stored password is wrong for some reason (e.g. expired, changed), the script hangs since winscp prompts for a new correct password.

Is there any winscp" scripting solution to this problem?

My script:
option batch on
option confirm off
open <stored session>
option transfer ascii
cd old
get <remote file> <local file>
close
exit

The last line in the log file:
2007-11-05 09:26:45.532 Session password prompt (<user>@<ip>s password: )

One possible solution is that I introduce an own timeout in my program that execute the winscp script. But I would like to have a more generic solution.

Thanks in advance
/Christian

Reply with quote E-mail

martin
Site Admin
martin avatar
Joined:
Posts:
27,226
Location:
Prague, Czechia

Re: Winscp script hangs when wrong .ini session password used

What version of WinSCP are you using?
_________________
Martin Prikryl

Reply with quote

chli24
Joined:
Posts:
4
Location:
Sweden

Sorry, latest version, 4.05 (Build 354).

Additional information:
To simulate wrong password/force error, I modified the Password field in the winscp.ini file (removed one char) for the Session I'm using in the script.
The password has not been changed on the remote server.
I did this for testing purpose.

Reply with quote E-mail

Advertisement

You can post new topics in this forum