Page 1 of 1

disabling individual camers via CLI?

Posted: Mon Jul 13, 2015 6:27 pm
by marcjw
New ZM user here. While I've found that zmpkg.pl does what I need for stopping and starting ZM from a command line, I'd like to be able to script the enabling / disabling of individual cameras, also from a command line but am unsure how. Is this possible?

Re: disabling individual camers via CLI?

Posted: Mon Jul 13, 2015 7:38 pm
by asker
If all you want to do is enable/disable, explore zmu

Code: Select all

zmu --help
marcjw wrote:New ZM user here. While I've found that zmpkg.pl does what I need for stopping and starting ZM from a command line, I'd like to be able to script the enabling / disabling of individual cameras, also from a command line but am unsure how. Is this possible?

Re: disabling individual camers via CLI?

Posted: Sat Feb 13, 2016 2:20 pm
by marcjw
After a lengthy hiatus I'm now finally able to properly tend to my ZM once again.

Unfortunately, it appears that zmu won't or can't suspend or disable individual cameras. The help screen has commands for both --suspend and --disable but neither seem to work. No error (or success) is returned and MODECT continues on as if nothing changed. I tried this on all 5 cameras with the same results.

There has to be a way to perform an individual camera disable (or suspend or run state) from the command line that I'm just not seeing, doesn't there?

asker wrote:If all you want to do is enable/disable, explore zmu

Code: Select all

zmu --help
marcjw wrote:New ZM user here. While I've found that zmpkg.pl does what I need for stopping and starting ZM from a command line, I'd like to be able to script the enabling / disabling of individual cameras, also from a command line but am unsure how. Is this possible?

Re: disabling individual camers via CLI?

Posted: Sat Feb 13, 2016 6:39 pm
by marcjw
Never mind, I'm a moron. I discovered that zmu requires root. sudo zmu -m etc works fine.