Change the run state externally (ie with a perl script)

Support and queries relating to all previous versions of ZoneMinder
Locked
execcr
Posts: 19
Joined: Tue May 02, 2006 3:58 pm
Location: Italy -- Cremona

Change the run state externally (ie with a perl script)

Post by execcr »

it is possibile to activate and deactivate zm from an external script?

I want to activate/deactivate it from my Asterisk PBX...

thanks
coke
Posts: 518
Joined: Wed Jan 30, 2008 5:53 pm
Location: St. Louis, MO, USA

Post by coke »

Code: Select all

sudo zmpkg.pl start
"stop" and "restart" are also acceptable parameters.
execcr
Posts: 19
Joined: Tue May 02, 2006 3:58 pm
Location: Italy -- Cremona

Post by execcr »

wow thanks!!
i was thinking there will be a command for changing the run state, but i thinks that this will works to me.

thanks
haus
Posts: 213
Joined: Thu Oct 11, 2007 5:10 am

Post by haus »

Sure is...

Code: Select all

sudo zmpkg.pl <runstate>
:)

I have two runstates defined: Arm and Disarm, for example.
Locked