Differences

This shows you the differences between the selected revisions of the page.

2005-11-20 2005-12-17
console anchor (martin) no summary (67.33.58.194)
Line 9: Line 9:
Multiple sessions can be opened simultaneously. Use the ''session'' command to switch between them. Commands can be read from a script file or passed from the command-line using the ''/command'' switch. Multiple sessions can be opened simultaneously. Use the ''session'' command to switch between them. Commands can be read from a script file or passed from the command-line using the ''/command'' switch.
-By default interactive mode is used (the user is prompted in the same way as in GUI mode). To switch to batch mode (all prompts are automatically answered negatively) use the command ''option batch on''. For the batch mode it is recommended to turn off confirmations using ''option confirm off'' to allow overwrites (otherwise the overwrite confirmation prompt would be answered negatively, making overwrites impossible).+By default interactive mode is used (the user is prompted in the same way as in GUI mode). To switch to batch mode (all prompts are automatically answered negatively) use the command ''option batch on''. For the batch mode it is recommended to turn off confirmations using ''option confirm off'' to allow overwrites (otherwise the overwrite confirmation prompt would be answered negatively, making overwrites impossible).  
 + 
 +Note also that the first connection to an SSH server requires __positive__ confirmation before storing keys in the registry, and this step cannot be automated with the ''option confirm off'' setting. Therefore, some provision for storing keys must be made prior to running the script to connect to a new host.
WinSCP returns exit code 1, when any command is interrupted due to an error or any prompt is answered //Abort// (even automatically in batch mode). Otherwise it returns the exit code 0. WinSCP returns exit code 1, when any command is interrupted due to an error or any prompt is answered //Abort// (even automatically in batch mode). Otherwise it returns the exit code 0.

Last modified: by 67.33.58.194