Previous | Next Table Of Contents > 4 File system commands > 4.4 Executing custom remote FTP commands
4.4 Executing custom remote FTP commands
The ftpcustomcmd command is used to execute a literal RFC959 based FTP command string on the remote server when connected to a non secure or SSL (FTPS) based secure FTP server. When connected to an SSH (SFTP) based secure server, a shell command string can be executed if permitted by the server. The ftpresult predefined status flag is set to the predefined constant success if the command completed successfully.
The syntax is
ftpcustomcmd <command string>;
Some examples are
ftpcustomcmd "SITE CHMOD 444 myfile.txt"; #run a site specific FTP command string
Previous | Next