Legal Information
PC Knowledge Base - FTP Command Reference

Good Knowledge Is Good2Use

SEND

Copies local_file on the local host to remote_file on the remote host. The current settings for type, mode, and structure are used during file transfers. SEND is the same as PUT.

FORMAT
SEND local_file remote_file
PARAMETERS
local_file - Specifies the name of the file on the local host to be copied.
remote_file - Specifies the destination file name on the remote host.
QUALIFIERS
/FDL

Sends a file in FDL format. When you create a file with the SEND /FDL qualifier, a file description language (FDL) file is created at the same time as the original file. The output file is converted to raw block format. When you retrieve a file with GET /FDL, the original format is restored using the attributes stored in the FDL file. If you do not use the /FDL qualifier with the GET command, the new raw block format is retained.
In any case, the FDL file is retained and must be deleted independently. The /FDL qualifier provides compatibility with DEC TCP/IP Services for OpenVMS (formerly UCX). The FDL file has the same name except the string FDL is appended to the end of the file name.

Restrictions EXAMPLE

This example shows how to transfer the file LOGIN.COM to the remote file

FOO.COM. FLOWERS.COM>send login.com foo.com
/p> SET

Sets automatic login information for host.

FORMAT
SET host
PARAMETERS
host - Specifies the host for which you want to set automatic login information.
QUALIFIERS
/USER:username - Specifies the user name sent when a connection is made to host.
/PASSWORD:password - Specifies the password sent when a connection is made to host.
/ACCOUNT:account - Specifies the account is sent when a connection is made to host.
DESCRIPTION

When a connection to host is made, FTP uses the information set to automatically log in. This command is usually used in the FTP.INIT file to specify a list of hosts and their login information. If FTP.INIT contains passwords in clear text, it is imperative that you protect the file from access by other users. If you specify /USER but not /PASSWORD, an automatic login is attempted and, if necessary, a password prompt displayed.

Restrictions

Do not use this command when connected to a remote host.

USAGE NOTE

If you do not specify any qualifiers, any automatic login information is cleared.

EXAMPLE

This example sets the user name and password for the host DS.INTERNIC.NET.

FTP>ds.internic.net /user:anonymous /pass:guest

SHOW-DIRECTORY

Displays the current working directory on the remote host. SHOW DIRECTORY is the same as PWD.

FORMAT
SHOW-DIRECTORY
Restrictions
  • Use this command only when connected to a remote host.
  • Most remote hosts require that you log in before using the SHOW-DIRECTORY command.
EXAMPLE

This example shows how to retrieve the remote default directory.

FLOWERS.COM>show
<"ST_ROOT: [TMP]" is current directory.
FLOWERS.COM>

SITE

Specifies commands that are interpreted by the MultiNet FTP server for use on the server host.

FORMAT
SITE command
PARAMETERS
command - Selects a command from the following:
  • RMS RECSIZE n Indicates a non-default record size for files transferred in IMAGE mode to the FTP server. Record size values can range from 1 to 32767; the default is 512 bytes.
  • PAWN Allows users to execute commands on the server host. The command must not require a terminal device, and must exit on completion. You cannot use this command during an anonymous FTP session.
SPAWN

Executes a single DCL command, or if entered without options, starts a subprocess with the same effect as PUSH. To return from DCL, use the LOGOUT command. If the MULTINET_DISABLE_SPAWN logical is set, SPAWN does not work.

FORMAT
SPAWN [command]
PARAMETERS
command - Specifies a command to execute. If you omit command, a DCL command line subprocess is created.
QUALIFIERS
/INPUT=file-spec - Specifies an input file to the command you enter with SPAWN.
/LOGICAL_NAMES /NOLOGICAL_NAMES - Specifies that logical names and logical name tables are not copied to the subprocess.
/SYMBOLS /NOSYMBOLS Specifies that global and local names are not passed to the subprocess.
/WAIT /NOWAIT - Returns control without waiting for the command to complete. Do not use this qualifier with commands that have prompts or screen displays.
/OUTPUT=file-spec - Specifies a file that retains the output of the command invoked with SPAWN. This qualifier only works when a single command is entered without creating a DCL subprocess. In addition, this qualifier is positional; you must enter it immediately after SPAWN or other qualifiers.

STATISTICS

Turns on, off, or toggles (the default) STATISTICS mode. In STATISTICS mode, FTP displays, upon completion of file transfers, timing statistics about the transfer.

FORMAT
STATISTICS mode
PARAMETERS
mode - Specifies a value of ON, OFF, or TOGGLE.
EXAMPLE

This example shows how to enable STATISTICS mode.

FTP>statistics
[Transfer statistics printing is ON]
FTP>
STATUS
Displays the status of the FTP server.
FORMAT
STATUS [data]
PARAMETERS
data - Sends this command data to the FTP server; data depends on the implementation of the FTP server. This parameter is optional.
Restrictions
Use this command only when connected to a remote host.
EXAMPLE
FLOWERS.COM>status
< MODE S
< Stru O VMS
< TYPE A N
FLOWERS.COM

STREAM

Turns on, off, or toggles (the default) the creation of binary output files as Stream_LF files.

FORMAT
STREAM mode
PARAMETERS
mode - Specifies ON, OFF, or TOGGLE.
EXAMPLE
FLOWERS.COM>stream
[ IMAGE files will be written as Stream_LF format]
FLOWERS.COM>
STRUCTURE

Sets the transfer structure to structure.

FORMAT
STRUCTURE structure
PARAMETERS
structure - Specifies a value of FILE, RECORD, or VMS.
  • Use FILE (the default) when connecting to systems that do not support VMS structure negotiation.
  • Use RECORD to transfer files when you want to preserve the record boundaries.
  • Use VMS to transfer files with arbitrary RMS attributes transparently. Transparent transfer is negotiated automatically between systems that support it. RMS semantics are passed along with the data.
Restrictions

Use this command only when connected to a remote host.

EXAMPLE
FLOWERS.COM>stru r
Type:Ascii (Non-Print), Structure: Record, Mode: Stream
FLOWERS.COM>
TAKE

Interprets FTP commands in a file. When the end of the file is encountered, the FTP command interpreter returns to its previous input source. You can nest TAKE commands up to ten levels deep.

FORMAT
TAKE file
PARAMETERS
file - Specifies the name of the file that contains commands to be interpreted.
EXAMPLE

This example shows how to take commands from the file FTP.COMMANDS.

FTP>take ftp.commands

TENEX

Changes the byte size for transferring binary files to or from a TOPS-20 system.

FORMAT
TENEX
Restrictions

Use this command only when connected to a remote host.

EXAMPLE

This example shows how to set the transfer type to TENEX.

FLOWERS.COM>tenex
Type: Logical-Byte (Byte Size 8), Structure: File, Mode: Stream
FLOWERS.COM>

TYPE

Sets the transfer type to type. FORMAT

TYPE type
PARAMETERS type - Specifies a value of ASCII, BACKUP, BINARY, IMAGE, or LOGICAL-BYTE.
  • Use TYPE ASCII (the default) for transferring text files.
  • Use TYPE BACKUP to set the transfer type to IMAGE and write the local file with 2048-byte fixed length records. Use this command to transfer VAX/VMS BACKUP save sets.
  • Use TYPE BINARY to transfer binary files (same as TYPE IMAGE).
  • Use TYPE IMAGE to transfer binary files (for example, .EXE).
  • Use TYPE LOGICAL-BYTE to transfer binary files to or from a TOPS-20 machine.
Restrictions

Use this command only when connected to a remote host.

EXAMPLE

This example shows how to set the type to transfer an image file.

FLOWERS.COM>type i
Type: Image, Structure: File, Mode: Stream
FLOWERS.COM>
USER

Identifies you to the remote FTP server. USER is a synonym for LOGIN. See LOGIN for more information.

FORMAT
USER user [password]
VERBOSE

Turns on, off, or toggles (the default) VERBOSE mode. VERBOSE mode causes FTP to display all responses from the remote FTP server as they are received.

FORMAT
VERBOSE mode
PARAMETERS
mode - Specifies a value of ON, OFF, or TOGGLE.
EXAMPLE <>This example shows how to enable VERBOSE mode.
FTP>verbose
[Verbose reply printing is ON]
FTP>
VERSION

Prints information about the FTP program version.

FORMAT VERSION EXAMPLE

This example shows how to print the FTP program version number.

FLOWERS.COM>version
FLOWERS.COM MultiNet FTP user process 4.2(nnn)
FLOWERS.COM>



Search Knowledge Base Feedback
If you like our web site refer a friend.
Your friends name.
Your friends email address.
Your Name
Your Email Address


© Copyright 1998-1999 GOOD2USE