EasyManua.ls Logo

Axis 200 - Page 47

Axis 200
107 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
AXIS 200
User’s Manual Section 5: Using the AXIS 200
45
Sample CRON Script
This example shows how several entries can be programmed into one
CRON script:
Downloading the
CRON Script
These instructions describe how to download a CRON script, e.g.
cron.txt
, to the AXIS 200 using FTP:
1. Start an FTP session and log in as root, using the root password.
2. Set FTP to binary mode, using the command
bin
.
3. Download the script using the command
put cron.txt cronscript
FTP will indicate “
File transfer complete
” or similar when the
file transfer is complete. The CRON script becomes active within one
minute after it has been downloaded to the AXIS 200.
# This is an example of an Axis extended CRON script:
# Once a day I want my mother to receive an e-mail
# containing the lastshot.jpg image.
0 0 * * * * :
mail -s "Hi mom! Look what my little camera has taken
for you." -a lastshot.jpg -t mother@some.site;
%
# This, the second entry will store a fullsize image
# using ftp on the ftp server an.ftp.site in
# /home/snapshots when input 1 goes high.
* * * * * /I1 :
ftp -host an.ftp.site -user aUser -pass aPass -src
fullsize.jpg -dest home/snapshots;
%
# This, the third entry will dial up an ISP and store
# an image on the ftp server an.ftp.site every
# hour. It will then disconnect.
0 * * * * :
online -dial aNumber -user aUser -pass aPass;
ftp -host an.ftp.site -user aUser -pass aPass -src
fullsize.jpg -dest home/snapshots;
offline;
%

Related product manuals