
AXIS 2400/2401
Administration Manual
Appendix H-The Programming Script
73
log
This command writes a message to the AXIS 2400/2401 log file.
Note:
To display the log file, you type the following in the address/location field of your Web browse r:
http://<video server>/log/messages
Syntax
log [MESSAGE];
Options
[MESSAGE]
The message string must be surrounded by quotation marks.
Example:
This command uses the Simple Mail Transfer Protocol (SMTP) for sending images and files from
your AXIS 2400/2401 to e-mail addresses.
Note:
The IP address of the mail server and a valid return address on the TCP/IP page must be speci-
fied when using the mail command.
Syntax
mail [-s SUBJECT] [-a ATTACHMENTS] [-t RECIPIENTS]
[-cam CAMERANUMBER] [-b BUFFERTYPE] [-n NUMBER];
Options
-s
Specifies the subject text for the e-mail. A simple one-word subject does not require
quotation marks. A subject with multiple words must be surrounded by quotation marks.
-a
Specifies attachments such as images or files. To include the image buffer, specify:
images/buffer.jpg
.
-t
Specifies the e-mail address of the recipient(s).
-cam
Specifies the camera source, i.e. 1-4. If omitted, the default camera will be used (AXIS 2401
must be set to 1).
-b
Specifies the buffer type, i.e.
fullsize.jpg
,
halfsize.jpg
or
hugesize.jpg
. Only valid
if
-a
is set to:
images/buffer.jpg
.
# This command writes a message to the log file when the AXIS 2400/2401Control Button is pressed.
* * * * * /B :
log "The Control button was pressed." ;
%