Previous Topic: VERSION

Next Topic: Parameters


Using the Send File Command

Use the Send File command to send a copy of a file on the local system to a file on a remote system.

The -c1 option specifies that this is a Send File transfer. The local file is indicated by the LOCAL_FILE parameter. The file on the remote system is indicated by the REMOTE_FILE parameter.

Example 1

In the following example, the xcom62 command is used. The configuration file is /myconfig.cnf, the local file is named /testa.aaa, the remote file is named /testb.bbb, and the transferred file replaces a file on the remote system that already exists. The PROTOCOL parameter specifies the protocol as SNA. All other necessary parameters are read from the default configuration file, XCOM.CNF.

xcom62 -c1 -f /myconfig.cnf LOCAL_FILE=/testa.aaa
REMOTE_FILE=/testb.bbb FILE_OPTION=REPLACE PROTOCOL=SNA

Example 2

In the following example, the xcomtcp command is used. The configuration file is /myconfig.cnf, the local file is named /testa.aaa, the remote file is named /testb.bbb, and the transferred file replaces a file on the remote system that already exists. The PROTOCOL parameter specifies the protocol as TCP/IP. All other necessary parameters are read from the default configuration file, XCOM.CNF.

xcomtcp -c1 -f /myconfig.cnf LOCAL_FILE=/testa.aaa
REMOTE_FILE=/testb.bbb FILE_OPTION=REPLACE
PROTOCOL=TCPIP