I've tried looking on the forums and in help docs for any info on this and I haven't seen it, so I thought I'd ask.
I am trying to do three things:
1. Use a batch file that auto-creates a script of particular functions when transfering a file.
2. Use a stored session configured in the GUI application so that I do not have to dual-maintain the GUI application session and the connection details in the bat file.
And these two things work fine, except for the third thing I want to do:
3. Auto-decline accepting a new SSH key (as it should when "option batch on" is specfied).
Every time I try to use a stored session, it always stays on the Yes/No/Cancel/Save prompt until I manually select a choice, whereas if I do not specify a stored session and add the connection details into the script it does not stay on the prompt and automatically answers negatively, like I want.
Am I missing an option to be configured in the stored session for this? Or any other explanation? Thanks for any help.
When you say you do not use stored session, what do you change? Do you change <profilename> on command line to something like <user>@<site>:<port>?
Please note that in what you have posted, there are actually two sessions opened. One from command line by <profilename> and the other by "open" command in the script. Is that intentional? For which of the sessions do you get the prompt?
OK, now it is obvious. In the first example you open the session from command line, before the script gets started, so the batch mode is not enabled yet. In the second example, you open the session from script after you enable the batch mode.
Replace <user>@<site>:<port> with <profilename> in your second example to make it work. _________________ Martin Prikryl