Site (-SITE)

Use the Site adapter command (-SITE) to send an FTP server specific site command to the FTP server software.


-SITE 'command_text'
Option
Description
'command_text'
Specify the FTP-server-specific site command, enclosed in single quotation marks, to send to the FTP server software

For example:


-SITE 'namefmt=1'

sends the NAMEFMT command to an AS/400 FTP server before files are transferred.

To see what commands are accepted by the server use a BSD-based command line client, typically the FTP command installed with your Windows or UNIX operating system, and log in to the server and type the following from the ftp prompt: quote HELP SITE or quote SITE HELP.

The command specified by -SITE is executed prior to the files being transferred.