Topic "passphrase prompts in batch"

Author Message
Someguy

Guest


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.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
The prompt should timeout after 10 seconds.
What vrsion of WinsCP are you using?
Please post a full log file showing the problem.
_________________
Martin Prikryl
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.
zeiglerw2

Guest


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?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
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"
http://winscp.net/eng/docs/scripting#example
_________________
Martin Prikryl
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