<< back to sysax.com Product page

5.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.

Exhibit 5.7. Syntax of command for executing custom remote FTP commands

ftpcustomcmd <command string>;

Exhibit 5.8. Example for using the command for executing custom remote FTP commands

ftpcustomcmd "SITE CHMOD 444 myfile.txt"; #run a site specific FTP command string