ReceiveFtpFile

From IRON Test Suite
Jump to navigation Jump to search

DESCRIPTION

This command receives a specified file from FTP server on the specified GSM port. It requires that FTP session on the specified GSM port be already connected. Command waits until file is received or optional timeout (entered in seconds) expired, or general timeout expired.


COMMAND

Command Input arguments Returns
ReceiveFtpFile Port index, Remote File Name, Local File Name, [Timeout] File saved in specified local file name, in the case of error, Error Code

All error messages are available in Data Commands Status Message list


EXAMPLE

~# ReceiveFtpFile 0 "./test.dat" "/var/tmp/test.dat" 120
FILE RECEIVED

~# ReceiveFtpFile 0 "./test.doc" "/var/tmp/test.dat"
FILE NOT FOUND

~# ReceiveFtpFile 1 "./test.dat" "/var/tmp/test.dat"
FTP DISCONNECTED

~# ReceiveFtpFile 2 "./test.dat" "/var/tmp/test.dat"
TIMEOUT EXPIRED