FTP Jobs: Free Form Command Settings
This topic describes how to use FTP Free Form commands. These commands allow you to define your own commands using static commands and/or Automation Engine variables.
To Define a Free Form Command Command
-
In From/To, select the Connection objects that connect to the source and destination hosts.
-
Drag the Free Form command from the left pane and drop it onto the editor in the middle.
-
In Free Form, do the following:
-
Select a Connection object. This list displays the connection objects that you have selected at the top of the editor for the source and target hosts.
-
In Commands, enter your commands.
When spaces are included in directories or files, double quotes " " should surround the entire argument.
This box allows Automation Engine variables in the following format: &<name>#.
Important!Empty lines are not allowed and will cause the Job to fail.
-
-
In the Options section, do the following:
-
If you do not want the Job to abort if this command fails, deselect Abort job on command failure.
-
If you want the Job to abort when source file(s) are not found, select Abort job when source file(s) not found (only used for put and get commands) box.
-
-
Optionally, add a description of the command under Description. The text you enter here is not written to the Job report. To write a message to the Job report, use an Echo command. For more information, see FTP Jobs: Echo Command Settings.
FTP, FTPS, and FTPES Commands
The following FTP, FTPS, and FTPES commands are allowed:
- ascii
- binary
- image
- ebcdic
- local
- get remote-path [local-path] [ERASE]
- put local-path [remote-path] [ERASE]
- mget remote-path [local-path] [ERASE]
- mput local-path [remote-path] [ERASE]
- site arg1 [ arg2 ] ...
- namelis [remote-directory]
- ls [remote-directory]
- dir [remote-directory]
- pwd
- cwd
- cd
- lcd
- account password
- allocate bytes
- mkdir directory-name
- rmdir directory-name
- rename from to
- move from to
- delete remote-file
- rm remote-file
- append local-file [remote-file]
- transfermode [stream|compressed|block]
- filestructure [file|page|record]
Sets the mode of the file transfer to ASCII.
Sets the mode of the file transfer to binary.
Sets the type to image, where the data is sent as contiguous bits, which, for transfer, are packed into the 8-bit transfer bytes.
Sets the type to EBCDIC to use EBCDIC for their internal character representation.
Sets the type to local, where the data is transferred in logical bytes of the size specified by the obligatory second parameter, byte size.
Downloads a file.
Includes the option to erase the source on successful transfer by entering the ERASE attribute at the end of the command.
Uploads a file.
Includes the option to erase the source on successful transfer by entering the ERASE attribute at the end of the command.
Downloads multiple files.
Includes the option to erase the source on successful transfer by entering the ERASE attribute at the end of the command.
Uploads multiple files.
Includes the option to erase the source on successful transfer by entering the ERASE attribute at the end of the command.
Initiates a site command with argument(s).
Runs an NLST command on a remote directory.
Displays an abbreviated list of files and subdirectories in a remote directory.
Views a remote directory.
Displays a remote working directory.
Changes the working directory.
Changes the working directory on the remote computer.
Changes the working directory on the local computer.
Password for system login.
Allocates bytes for a file storage on the remote computer.
Creates a specified directory on the remote computer.
Removes a specified directory on the remote computer.
Renames a remote file.
Moves a remote file.
Deletes a remote file.
Removes a remote file.
Appends a file to a file of same name on the remote computer.
Sets the transfer mode.
Sets the file structure.
In order to accommodate the FTP Agent's design, there are additional features added to standard FTP, specifically CANCEL and ERASE.
-
CANCEL means that the file transfer will abort. Where multiple files are transferred, this is done on a case by case basis.
-
ERASE means that the source file is deleted after the file transfer is complete.
SFTP Commands
The following SFTP commands are allowed:
- cd path
- lcd path
- chgrp grp path
- chmod mode path
- chown own path
- help
- get remote-path [local-path] [ERASE]
- lls [path]
- ln oldpath newpath
- lpwd
- ls [path]
- mkdir path
- put local-path [remote-path] [ERASE]
- pwd
- stat path
- rename oldpath newpath
- rmdir path
- rm path
- symlink oldpath newpath
- readlink path
- realpath path
- rekey
- compression level
Changes the remote directory to 'path'.
Changes the local directory to 'path'.
Changes the group of file 'path' to 'grp'.
Changes the permissions of file 'path' to 'mode'.
Changes the owner of file 'path' to 'own'.
Displays this help text.
Downloads a file.
Includes the option to erase the source on successful transfer by entering the ERASE attribute at the end of the command.
Displays the local directory listing.
Symlinks a remote file.
Prints the local working directory.
Displays the remote directory listing.
Creates a remote directory.
Uploads a file.
Includes the option to erase the source on successful transfer by entering the ERASE attribute at the end of the command.
Displays the remote working directory.
Displays info about path.
Renames a remote file.
Removes a remote directory.
Deletes a remote file.
Symlinks a remote file.
Checks the target of a symbolic link.
Canonicalizes the path.
Key re-exchanging.
Packet compression will be enabled.
See also: