SendFtpFile

From IRON Test Suite
Jump to navigation Jump to search

DESCRIPTION

This command sends a specified file to 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 sent or optional timeout (entered in seconds) expired, or general timeout expired.


COMMAND

Command Input arguments Returns
SendFtpFile Port index, Local File Path, Remote File Path, [Timeout] In the case of error, Error Code

All error messages are available in Data Commands Status Message list


EXAMPLE

~# SendFtpFile 0 "/var/tmp/test.dat" "./test.dat"
FILE SENT

~# SendFtpFile 1 "toto" "./toto"
FILE NOT FOUND

~# SendFtpFile 2 "/var/tmp/test.dat" "./test/dat"
FTP DISCONNECTED

~# SendFtpFile 1 "/var/tmp/test.dat" "./test.dat" 30
TIMEOUT EXPIRED