RemoteExec <site command>
Execute a command on the remote server. If the command does start with an asterisk or with the word "QUOTE", it will be performed as an FTP command, otherwise it will be performed by a SITE command (which is the usual way to perform custom commands on the server).
This is similar to the QUOTE command from Microsoft command line FTP, e.g. the ftp> quote site xxxx command would translate into RemoteExec "xxxx" and ftp> quote yyyy would translate into RemoteExec "*yyyy" or RemoteExec "QUOTE yyyy".
See also: ForEach command.
Example: RemoteExec "chmod 777 public.dat"
.
(perform the ftp command "SITE chmod 777 public dat").
← Back to Script Commands