passphrase prompts in batch

Advertisement

Someguy
Guest

passphrase prompts in batch

In console batch mode when you have a private key with password, even if using "option batch abort" "option confirm off", you get a prompt blocking the script instead of an abort.

Thanks.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

Re: passphrase prompts in batch

The prompt should timeout after 10 seconds.
What vrsion of WinsCP are you using?
Please post a full log file showing the problem.

Reply with quote

Someguy
Guest

You are right, I tried to replicate the problem and there is a timeout after 10 seconds.
I don't know how I got that problem in the first place.

This report can be ignored then, thanks.

Reply with quote

zeiglerw2
Guest

Re: passphrase prompts in batch

Can you show an example of where to properly put "option batch abort"? Here is the command I am using:
C:\WinSCP.exe /console Stored_Session /command "cd Some/Directory" "put some*.file"

Where would I put option batch abort? ... as a command in quote?

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

Re: passphrase prompts in batch

zeiglerw2 wrote:

Can you show an example of where to properly put "option batch abort"? Here is the command I am using:
C:\WinSCP.exe /console Stored_Session /command "cd Some/Directory" "put some*.file"

Where would I put option batch abort? ... as a command in quote?
C:\WinSCP.exe /console /command "option batch abort" "open Stored_Session" "cd Some/Directory" "put some*.file"
https://winscp.net/eng/docs/scripting#example

Reply with quote

Advertisement

You can post new topics in this forum