User`s guide
Using the Camera Server AXIS 200+ and 240 User’s Guide
22
CRON Commands
Several CRON script commands can be used within an entry. All commands must be terminated
with a semi-colon “;”.
This table lists the available commands:
Notes:
Although the downloaded entries are effectively executed in parallel, the commands included
within each entry are executed sequentially, i.e. the second command is not executed until the
first is finished.
The Help pages accessible via the camera server Web interface describe CRON command
syntax in detail.
Sample CRON Scripts
Example 1
The following script will:
1. Execute every 10 minutes during daylight (5 AM - 9 PM).
2. Take a snapshot of the fullsize.jpg image and store it internally in the camera as lastshot.jpg.
3. Dial up over a modem and connect to an Internet Service Provider (ISP).
Note:
The ISP dialed in this example supports CHAP login and does not require a script part. An
example of the on-line command to an ISP that requires a log on script could be:
online -dial 1234567 -user "USER" -pass "PASS" -timeout m6s40 -script
"'' 'ogin:' '$(USER)' 'assword:' '$(PASS)'"
4. After log on we send the image taken previously to an ftp server. It is
first stored with the
temporary name tmp.jpg and later renamed to
image
followed by the year, month, day, hour, minute
and second. An example filename would be
image1998-11-23_08_34_00.jpg
Command Description
alert Sends a small message to a remote host.
buffer_init Initiates an image buffer.
buffer_start Stores snapshots in the image buffer.
buffer_stop Ends the storing of snapshots in the image buffer.
ftp Transfers an image to a remote host using FTP.
log Writes a message to the camera server log file
mail Sends an e-mail using SMTP.
offline Terminates the current PPP connection.
online Dials up a modem for PPP connection.
ptz - applies
to 240 only
Pans, tilts and zooms connected video cameras.
reset Restarts the unit.
sleep Makes a pause in the CRON script execution.
snapshot Updates the last snapshot image.










