Transfers files from one machine to another over the local network.
Transfers files from one machine to another over the local network.
- SOURCE
- The name of the file or files to be transferred. This may be a file on the local system; in which case, SOURCE is simply the file name--or it may be a file on a remote system, in which case, SOURCE has the form "system@file".
Examples: hello.c the file "hello.c" in the current directory on the local system. *.c all files ending with ".c" in the current directory on the local system. vaxa@[butzer]frog.pdf the file "frog.pdf" in the directory "[butzer]" on the "vaxa" system. pn9050@/edc/systems/neiers/*.[ch] all files ending in either ".c" or ".h" in the directory "/edc/systems/neiers" on the "pn9050" system. Note that for files on remote systems, the file naming conventions of the remote system must be used. All wildcards for single level directory expansions are legal.
- DESTIN
- The destination file specification. This may be either a file or a directory; in which case, the file is copied with the same name into the directory. As with SOURCE, the destination may be either on the local system or on a remote system, but either SOURCE or DESTIN must be on the local system. A file or directory on a remote system is given by preceding it with the system name and the "@" character.
Examples: hello.c the file "hello.c" in the current directory on the local system. . the current directory on the local system (UNIX machines). [] the current directory on the local system (VMS machines). vaxa@[butzer]frog.pdf the file "frog.pdf" in the directory "[butzer]" on the "vaxa" system. vaxb@ your login default directory on the "vaxb" system. vaxa@[butzer.tae] the directory "[butzer.tae]" on the "vaxa" system. pn9050@/edc/systems/neiers/tae the directory "/edc/systems/neiers/tae" on the "pn9050" system.Note that for files on remote systems, the file naming conventions of the remote system must be used.Wildcards are not allowed in the destination. If multiple source files are to be copied, the destination should be a directory. In this case the files will be copied into the destination directory with the same names. If a destination is given which is not a directory and multiple files are sent, the destination file will be overwritten by each succeeding file, resulting in only the last file being saved.
- DTYPE("CHAR" VALID =(TAE,CHAR,BIN,FIXED)
- Specifies data type of file. Legal values are:
= CHAR: ASCII character file. = TAE: TAE image files (xi files). = FIXED: Fixed-length binary records. = BIN: Binary data. Only allowed between similar systems.
- USER("")
- The login name to be used to determine file access on the remote system. Normally, this is not needed as NCP uses the current login name from the local system. However, if a user has a different login name on the remote host, USER should be set to the remote login name and PASSWD must be set to the remote login's password.
- PASSWD("")
- The password for a remote login name given in the USER parameter. This parameter is not used unless the USER parameter is used.
- RECSIZE("")
- This parameter is only used if DTYPE is set to FIXED. In this case, RECSIZE is the size, in bytes, of the records in the file.
This example will send all files from your current directory ending in .C to your home directory on remote machine VAXB.
This example receives the file /EDC/SYSTEMS/BUTZER/ TRIP.RPT from remote machine PN9050 into the file TRIP.RPT in your current directory.
This example receives the file [BUTZER]TRANSPORT.C from remote machine VAXB into the file TRANSPORT.B.
The program NCP is run using the parameters provided.
No password was specified when a user name was specified. The password must be specified when a user name is specified.
When a fixed data type is specified, the record size of the file must also be specified.