User Guide

Appendix C - PHP3 Script Examples
Axis Communications AB does not provide support for application development of any kind. The
information here is provided "as is", and there is no guarantee that any of the examples shown
will work in your particular application.
Revision 0.9 May 2001 57
TASK.LIST
(Needed to run the script above and it’s important that the file is named task.list)
once immune % /bin/bufferd : -start -buffername CAM1 -pre 2 -post 2 -
predelay 1000 -postdelay 1000 -uri ftp://jpg/1/fullsize.jpg;
date(w(0,1,2,3,4,5,6)) pattern((IO0:/)) immune once % /bin/sh : -c
php /etc/httpd/html/alarm_smtp_net.php3;
error_log("Restarting buffer(s)",0);
for($c=0;$c<(strlen($sources));$c++)
{ // Reset and restart
//buffers
$command="bufferd -reset -buffername
".$buffer_prefix.substr($sources,$c,1);
system($command);
$command="bufferd -start -buffername
".$buffer_prefix.substr($sources,$c,1)." -pre ".strval($pre)." -
post ".strval($post)." -predelay ".strval($predelay)." -
postdelay ".strval($postdelay)." -uri
ftp://jpg/".substr($sources,$c,1)."/".$image_format.".jpg";
system($command);
}
?>