Using the sample perl script from the FAQ?
Posted: Thu Feb 17, 2011 5:34 pm
I'd like to try and do a few things using the "perl API" starting with the sample script shown in the FAQ at the Wiki, but don't know how to get started with it.
I'm not a Perl person but hope I can quickly learn enough about the shared memory layout to access it in "C" although I suspect I can do what I want in Perl too once I go up its learning curve a bit.
Assume I've cut and pasted the sample script into an xxx.pl file and made it executable by the www-data user, how do I get it to run when the desired "run state" is in effect? Where do I put it?
Its very frustrating that the Wiki is not accurate for the 1.24.2 release, for example "perldoc ZoneMinder::SharedMem" is incorrect now and gives an error. Doing "perldoc ZoneMinder::Memory" appears to be what does it now.
I'm not a Perl person but hope I can quickly learn enough about the shared memory layout to access it in "C" although I suspect I can do what I want in Perl too once I go up its learning curve a bit.
Assume I've cut and pasted the sample script into an xxx.pl file and made it executable by the www-data user, how do I get it to run when the desired "run state" is in effect? Where do I put it?
Its very frustrating that the Wiki is not accurate for the 1.24.2 release, for example "perldoc ZoneMinder::SharedMem" is incorrect now and gives an error. Doing "perldoc ZoneMinder::Memory" appears to be what does it now.