Ħ.1.3 -be: continue batch processing on errors So instead of seeing this:ĭrwxrwsr-x 4 fred fred 1024 Sep 6 10:42. With the -bc option, PSFTP will display prompts and commands just as if the commands had been typed at the keyboard. The -bc option alters what PSFTP displays while processing a batch script specified with -b. PSFTP will terminate after it finishes executing the batch script.Ħ.1.2 -bc: display batch commands as they are run To change this behaviour, you can add the -be option ( section 6.1.3). When you run a batch script in this way, PSFTP will abort the script if any command fails to complete successfully. For example, you might create a file called myscript.scr containing lines like this:Īnd then you could run the script by typing You use it with a file name containing batch commands. If you need to do automated tasks with PSFTP, you would probably prefer to specify a set of commands in advance and have them executed automatically. In normal operation, PSFTP is an interactive program which displays a command line and accepts commands from the keyboard. The following sections describe PSFTP's specific command-line options.Ħ.1.1 -b: specify a file containing batch commands PSFTP also supports some of its own options. (The ones not supported by PSFTP are clearly marked.) See section 3.8.3 for a description of these options. PSFTP accepts all the general command line options supported by the PuTTY tools, except the ones which make no sense in a file transfer utility. Psftp: no hostname specified use "open host.name" to connectĪt this point you can type open or open to start a session. Psftp if you just type psftp on its own (or double-click the PSFTP icon in the Windows GUI), you will see the PSFTP prompt, and a message telling you PSFTP has not connected to any server: Unlike PSCP, however, PSFTP has no complex command-line syntax you just specify a host name and perhaps a user name: Set PATH=C:\path\to\putty\directory %PATH% To add the directory containing PSFTP to your PATH environment variable, type into the console window: To do this, it will need either to be on your PATH or in your current directory. The usual way to start PSFTP is from a command prompt, much like PSCP. By contrast, PSCP is designed to do a single file transfer operation and immediately terminate. You can list the contents of directories, browse around the file system, issue multiple get and put commands, and eventually log out. PSFTP allows you to run an interactive file transfer session, much like the Windows ftp program. (PSCP will also use this protocol if it can, but there is an SSH-1 equivalent it can fall back to if it cannot.) PSFTP uses the new SFTP protocol, which is a feature of SSH-2 only. PSCP should work on virtually every SSH server. PSFTP differs from PSCP in the following ways: PSFTP, the PuTTY SFTP client, is a tool for transferring files securely between computers using an SSH connection. 6.3 Using public key authentication with PSFTPĬhapter 6: Using PSFTP to transfer files securely.6.2.19 The ! command: run a local Windows command.6.2.18 The mv command: move and rename remote files.6.2.17 The rmdir command: remove remote directories.6.2.16 The mkdir command: create remote directories.6.2.15 The del command: delete remote files.6.2.14 The chmod command: change permissions on remote files.6.2.13 The dir command: list remote files.6.2.12 The reget and reput commands: resuming file transfers.6.2.11 The mget and mput commands: fetch or send multiple files.6.2.10 The put command: send a file to the server.6.2.9 The get command: fetch a file from the server.6.2.8 The lcd and lpwd commands: changing the local working directory.6.2.7 The cd and pwd commands: changing the remote working directory. 6.2.6 The help command: get quick online help.6.2.5 The close command: close your connection.6.2.4 The quit command: end your session.6.2.3 The open command: start a session.6.2.1 General quoting rules for PSFTP commands.6.1.4 -batch: avoid interactive prompts.6.1.3 -be: continue batch processing on errors.6.1.2 -bc: display batch commands as they are run.6.1.1 -b: specify a file containing batch commands.Chapter 6: Using PSFTP to transfer files securely.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |