- GETTING STARTED
- Server connection
- File Transfer
- Directory operations
- File operations
- Script output
Send a raw command to the FTP server.
command: complete command including any parameters.
- Some FTP servers are capable of special or non-standard operations that are not supported directly by the set of commands ScriptFTP provides. RAWCOMMAND allows you to execute these operations by sending the given command to the FTP server. ScriptFTP will not carry out any further processing of the command you indicate. It will just pass it on to the server via the FTP control connection and then wait for a response.
- RAWCOMMAND is the ScriptFTP's equivalent to the windows ftp.exe's quote. For example:
quote SITE RECFM=UProduces the same results as:
RAWCOMMAND will return the reply code sent by the FTP server.
# Adding an FTP user within an FTP session is
# supported by the Apache FTP server. This
# script adds the user carl and then lists the
# current FTP users.
# Add a FTP user
RAWCOMMAND("SITE ADDUSER carl")
# List users