Using the %rscmderror Variable

Top  Previous  Next

 

The %rscmderror variable is set by the RSCMDSTATUS command when an abnormal script completion is reported by Robo-FTP Server when Robo-FTP is submitting remote server commands.

 

The following example show how Robo-FTP might detect a $ERROR_SCRIPT_EOF (1097 Past end-of-file on script file) error that occurred when running a script on the server.

 

RSCMD "CALL 'hourly.s'"

;;...

RSCMDSTATUS

IFERROR= $ERROR_RSCMD_FAILED GOTO rscmd_error

;;...

:rscmd_error

IFNUM= %rscmderror $ERROR_SCRIPT_EOF GOTO script eof error

;;...

:script eof error

 

 

See Also: Internal Script Variables