
Appendix H-The Programming Script
AXIS 2400/2401 Administration Manual
70
ftp
The ftp command uses the standard File Transfer Protocol (FTP) for transferring an image from
your AXIS 2400/2401 to a remote host.
Note:
The ftp command keeps the connection open during each file transfer.
Syntax
ftp [-host HOST] [-user USERNAME] [-pass PASSWORD]
[-src SOURCEFILE] [-dest DESTINATIONFILE]
[-temp TEMPORARY_DESTINATION_NAME] [-loop LOOPTIME]
[-time TOTALTIME] [-cam CAMERANUMBER]
[-buffer BUFFERTYPE];
Options
-host
Specifies the name or IP address of the remote host. If specifying the DNS name,
performance will be slightly decreased due to the DNS lookup. If no host is specified, the
compiler will complain.
-user
Specifies the user name for logging on to the remote host. If no user name is specified, the
compiler will complain.
-pass
Specifies the password for logging on to the remote host.
-src
Specifies the source file name. If omitted, the
fullsize.jpg
file will be sent. To include
the image buffer, specify
images/buffer.jpg
.
-dest
Specifies the name and whole path of the destination file. If omitted, the destination file
name will be the same as the source file name. The maximum length of a destination file
name is 255 characters. You can add as many destination files as required, separated by a
space.
You can add time stamps, such as time, date and file indexes, to the destination file name.
This is useful for example when you are transferring a series of files.
The following table lists the available time stamp variables. Every substitution must be
proceeded by a dollar sign “
$
”.
$s
The current second in the range 00-59.
$m
The current minute in the range 00-59.
$h
The current hour in the range 00-23.