User Manual

Table Of Contents
AXIS 240 Users Manual Appendix H: CRON Script Command Reference
123
Example
sleep
This command adds a pause to the CRON script execution. The
command is typically used if you want to assure that the previous
command is finished before continuing the script.
Syntax
sleep <seconds>;
Options
<seconds>
Specifies the number of seconds to wait before proceeding with
the next command in the event entry.
Example
snapshot
This command updates the
lastshot.jpg image. The command can
also be used for controlling the relay switch.
Syntax
snapshot [-l LOOPTIME] [-t TOTALTIME]
[-cam CAMERANUMBER] [FILE];
Options
-l Specifies the time between two consecutive image updates.
-t Specifies the duration of the command. Format:
h<hours>m<minutes>s<seconds>.
# This command will reset the AXIS 240 hardware
# once a day.
0 0 * * * :
reset -hard;
%
# This command will result in a 30 seconds pause
# in the CRON script execution.
* * * * * :
sleep 30;
%