X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/421406a46c2afcbfbb2ae69e9aa4b256db80e283..c16e353eb95120407b78602f0bbaedac57eccf44:/doc/psftp.but diff --git a/doc/psftp.but b/doc/psftp.but index f6ac2dc1..be8ac3f6 100644 --- a/doc/psftp.but +++ b/doc/psftp.but @@ -74,7 +74,6 @@ containing lines like this: \c ren jam.tar.gz jam-old.tar.gz \c put jam.tar.gz \c chmod a+r jam.tar.gz -\c quit and then you could run the script by typing @@ -84,6 +83,8 @@ When you run a batch script in this way, PSFTP will abort the script if any command fails to complete successfully. To change this behaviour, you can add the \c{-be} option (\k{psftp-option-be}). +PSFTP will terminate after it finishes executing the batch script. + \S{psftp-option-bc} \I{-bc-PSFTP}\c{-bc}: display batch commands as they are run The \c{-bc} option alters what PSFTP displays while processing a @@ -142,6 +143,9 @@ Once you have started your PSFTP session, you will see a \c{psftp>} prompt. You can now type commands to perform file-transfer functions. This section lists all the available commands. +Any line starting with a \cw{#} will be treated as a \i{comment} +and ignored. + \S{psftp-quoting} \I{quoting, in PSFTP}General quoting rules for PSFTP commands Most PSFTP commands are considered by the PSFTP command interpreter @@ -227,6 +231,8 @@ commands (except \c{help} and \c{quit}). To create a connection, type \c{open host.name}, or if you need to specify a user name as well you can type \c{open user@host.name}. +You can optionally specify a port as well: +\c{open user@host.name 22}. Once you have issued this command, you will not be able to issue it again, \e{even} if the command fails (for example, if you mistype