X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=doc%2Fpscp.but;h=5da247dffb2c95ca5c4561be6878db29a8409a49;hb=9600d8815a2d0e4fea5420bf2388ce8b092eba9b;hp=dcc60e304b6c41d9c14dc824fe46cd64c42d1c8a;hpb=9f3b49f3ba0f92604f925808835f76c11b770efe;p=PuTTY.git diff --git a/doc/pscp.but b/doc/pscp.but index dcc60e30..5da247df 100644 --- a/doc/pscp.but +++ b/doc/pscp.but @@ -1,4 +1,4 @@ -\versionid $Id: pscp.but,v 1.18 2001/12/14 12:15:43 simon Exp $ +\versionid $Id: pscp.but,v 1.20 2001/12/31 16:15:19 simon Exp $ \#FIXME: Need examples @@ -230,7 +230,19 @@ Since specifying passwords in scripts is a bad idea for security reasons, you might want instead to consider using public-key authentication; see \k{pscp-pubkey}. -\S{pscp-pubkey} Return value +\S2{pscp-usage-options-batch}\c{-batch} avoid interactive prompts + +If you use the \c{-batch} option, PSCP will never give an +interactive prompt while establishing the connection. If the +server's host key is invalid, for example (see \k{gs-hostkey}), then +the connection will simply be abandoned instead of asking you what +to do next. + +This may help PSCP's behaviour when it is used in automated +scripts: using \c{-batch}, if something goes wrong at connection +time, the batch job will fail rather than hang. + +\S{pscp-retval} Return value PSCP returns an \cw{ERRORLEVEL} of zero (success) only if the files were correctly transferred. You can test for this in a batch file,