Open System Services Shell and Utilities Reference Manual (G06.29+, H06.08+, J06.03+)
ftp(1) OSS Shell and Utilities Reference Manual
rename from to
Renames a file on the remote host.
reset Clears the reply queue. This command resynchronizes the command parsing.
restart marker
Restarts the immediately following get or put command at the indicated marker. On
systems that treat files as unstructured byte arrays (such as OSF/1 and UNIX systems),
marker is simply a byte offset into the file.
rmdir remote_directory
Removes the directory remote_directory at the remote host.
runique Toggles whether unique filenames are created for local destination files during get and
mget operations. If creating unique local filenames is not enabled (the default), ftp
overwrites local files. Otherwise, if a local file has the same name as specified for a
local destination file, ftp modifies the specified name of the local destination file with .1.
If a local file is already using the new name, ftp appends the postfix .2 to the specified
name. If a local file is already using this second name, ftp continues incrementing the
postfix until it either finds a unique filename or reaches .99 without finding a unique
name. If ftp cannot find a unique name, ftp reports an error and the transfer does not
take place. Note that runique does not affect local filenames generated from a shell
command. When transferring a file ending in .1 (or any other digit) to a /G Guardian file
system, the period (.) is dropped from the resulting Guardian file name.
send local_file [remote_file]
Stores a local file on the remote host. A synonym for put.
sendport
Toggles the use of FTP PORT instructions. By default, ftp uses a PORT instruction
when establishing a connection for each data transfer. When the use of PORT instruc-
tions is disabled, ftp does not use PORT instructions for data transfers.
size filename
Displays the size of the file, filename, on the remote system in bytes.
status Displays current status of ftp.
struct [structure]
Sets data transfer structure type. The only structure supported is stream.
sunique Toggles whether unique filenames are created for remote destination files during put and
mput
operations. If creating unique remote filenames is not enabled (the default), ftp
overwrites
remote files. Otherwise, if a remote file has the same name as specified for a
remote destination file, the remote FTP server modifies the name of the remote destina-
tion file. Note that the remote server must support the STOU instruction.
trace Toggles packet tracing.
type [type]
Sets the file transfer type to type.Iftype is not specified, the current type is printed. The
default type is ascii. Note that binary transfer (type binary) can be more efficient than
ASCII transfer. File transfers to the Guardian (/G) file system will always arrive as
Guardian file type 180.
3−166 Hewlett-Packard Company 527188-021