<< back to sysax.com Product page

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

Exhibit 4.7. table title

ftpcustomcmd <command string>;

Some examples are

Exhibit 4.8. table title

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