Script execution

RFC 959 ( http://www.ietf.org/rfc/rfc959.txt ) specifies the valid reply codes for each FTP command. Reply codes in the range 200-299 are non-error codes. All other reply codes are error codes.

A script either completes with or without unsuppressed errors. When a a script executes, Activator opens a connection to the FTP server. Activator sends the FTP commands one by one to the FTP server. If a reply code is:

  • Not a valid reply code for the given command, the statement terminates.
  • A valid code for the given command and an error code, the statement terminates.
  • A valid code for the given command and a non-error code, Activator sends the next command, if any, to the FTP server.

Normally, if a statement terminates, the script terminates. However, if the statement is preceded by the “-” qualifier, the error is suppressed and the script does not terminate. Once the script is completed or terminated, Activator closes the connection to the FTP server.

Related Links