Page 1 of 1

Trigger event via bash

Posted: Wed Mar 23, 2011 3:29 pm
by Streethunter
Hello,
I need to trigger an event in an Bash script.
I tried using the zmtrigger.pl with the following commad as root: ./zmtrigger "6|on+10|255|test|test" .But he's doing nothing and I only can do something else by pressing CTRL+C. And as www-data I'm getting the following error message: "Can't bind: Die Adresse wird bereits verwendet at /usr/share/perl5/ZoneMinder/Trigger/Connection.pm line 87"

I'm using Debian Squezze with the following hardware:
AMD Athlon(tm) II X2 245e, 4GB DDR3 RAM, Logitech Webcam Pro 9000


Syslog as root:
ar 23 16:25:22 Server-Debian zmtrigger[4056]: INF [Trigger daemon starting]
Mar 23 16:25:22 Server-Debian zmtrigger[4056]: INF [Opening connection 'Chan1']
Mar 23 16:25:22 Server-Debian zmtrigger[4056]: INF [Opening connection 'Chan2']
Mar 23 16:25:22 Server-Debian zmtrigger[4056]: INF [Opening connection 'Chan4']
Mar 23 16:25:48 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 146000 - Capturing at 25.00 fps]
Mar 23 16:25:50 Server-Debian zma_m6[2127]: INF [Monitor-6: 146000 - Processing at 25.00 fps]

Syslog as www-data:
Mar 23 16:23:43 Server-Debian zmtrigger[4053]: INF [Trigger daemon starting]
Mar 23 16:23:43 Server-Debian zmtrigger[4053]: INF [Opening connection 'Chan1']
Mar 23 16:23:43 Server-Debian zmtrigger[4053]: INF [Opening connection 'Chan2']
Mar 23 16:23:48 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 143000 - Capturing at 25.00 fps]
Mar 23 16:23:50 Server-Debian zma_m6[2127]: INF [Monitor-6: 143000 - Processing at 25.00 fps]

Syslog the latest 200 lines:
Mar 23 15:29:06 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 61000 - Capturing at 25.00 fps]
Mar 23 15:29:08 Server-Debian zma_m6[2127]: INF [Monitor-6: 61000 - Processing at 25.00 fps]
Mar 23 15:29:46 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 62000 - Capturing at 25.00 fps]
Mar 23 15:29:48 Server-Debian zma_m6[2127]: INF [Monitor-6: 62000 - Processing at 25.00 fps]
Mar 23 15:30:26 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 63000 - Capturing at 25.00 fps]
Mar 23 15:30:28 Server-Debian zma_m6[2127]: INF [Monitor-6: 63000 - Processing at 25.00 fps]
Mar 23 15:31:06 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 64000 - Capturing at 25.00 fps]
Mar 23 15:31:08 Server-Debian zma_m6[2127]: INF [Monitor-6: 64000 - Processing at 25.00 fps]
Mar 23 15:31:46 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 65000 - Capturing at 25.00 fps]
Mar 23 15:31:48 Server-Debian zma_m6[2127]: INF [Monitor-6: 65000 - Processing at 25.00 fps]
Mar 23 15:32:26 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 66000 - Capturing at 25.00 fps]
Mar 23 15:32:28 Server-Debian zma_m6[2127]: INF [Monitor-6: 66000 - Processing at 25.00 fps]
Mar 23 15:33:06 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 67000 - Capturing at 25.00 fps]
Mar 23 15:33:08 Server-Debian zma_m6[2127]: INF [Monitor-6: 67000 - Processing at 25.00 fps]
Mar 23 15:33:46 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 68000 - Capturing at 25.00 fps]
Mar 23 15:33:48 Server-Debian zma_m6[2127]: INF [Monitor-6: 68000 - Processing at 25.00 fps]
Mar 23 15:34:26 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 69000 - Capturing at 25.00 fps]
Mar 23 15:34:28 Server-Debian zma_m6[2127]: INF [Monitor-6: 69000 - Processing at 25.00 fps]
Mar 23 15:35:06 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 70000 - Capturing at 25.00 fps]
Mar 23 15:35:08 Server-Debian zma_m6[2127]: INF [Monitor-6: 70000 - Processing at 25.00 fps]
Mar 23 15:35:46 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 71000 - Capturing at 25.00 fps]
Mar 23 15:35:48 Server-Debian zma_m6[2127]: INF [Monitor-6: 71000 - Processing at 25.00 fps]
Mar 23 15:36:26 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 72000 - Capturing at 25.00 fps]
Mar 23 15:36:28 Server-Debian zma_m6[2127]: INF [Monitor-6: 72000 - Processing at 25.00 fps]
Mar 23 15:37:06 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 73000 - Capturing at 25.00 fps]
Mar 23 15:37:08 Server-Debian zma_m6[2127]: INF [Monitor-6: 73000 - Processing at 25.00 fps]
Mar 23 15:37:46 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 74000 - Capturing at 25.00 fps]
Mar 23 15:37:48 Server-Debian zma_m6[2127]: INF [Monitor-6: 74000 - Processing at 25.00 fps]
Mar 23 15:38:26 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 75000 - Capturing at 25.00 fps]
Mar 23 15:38:28 Server-Debian zma_m6[2127]: INF [Monitor-6: 75000 - Processing at 25.00 fps]
Mar 23 15:39:01 Server-Debian /USR/SBIN/CRON[3084]: (root) CMD ( [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -type f -cmin +$(/usr/lib/php5/maxlifetime) -delete)
Mar 23 15:39:06 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 76000 - Capturing at 25.00 fps]
Mar 23 15:39:08 Server-Debian zma_m6[2127]: INF [Monitor-6: 76000 - Processing at 25.00 fps]
Mar 23 15:39:46 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 77000 - Capturing at 25.00 fps]
Mar 23 15:39:48 Server-Debian zma_m6[2127]: INF [Monitor-6: 77000 - Processing at 25.00 fps]
Mar 23 15:40:26 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 78000 - Capturing at 25.00 fps]
Mar 23 15:40:28 Server-Debian zma_m6[2127]: INF [Monitor-6: 78000 - Processing at 25.00 fps]
Mar 23 15:41:06 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 79000 - Capturing at 25.00 fps]
Mar 23 15:41:08 Server-Debian zma_m6[2127]: INF [Monitor-6: 79000 - Processing at 25.00 fps]
Mar 23 15:41:46 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 80000 - Capturing at 25.00 fps]
Mar 23 15:41:48 Server-Debian zma_m6[2127]: INF [Monitor-6: 80000 - Processing at 25.00 fps]
Mar 23 15:42:26 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 81000 - Capturing at 25.00 fps]
Mar 23 15:42:28 Server-Debian zma_m6[2127]: INF [Monitor-6: 81000 - Processing at 25.00 fps]
Mar 23 15:43:06 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 82000 - Capturing at 25.00 fps]
Mar 23 15:43:08 Server-Debian zma_m6[2127]: INF [Monitor-6: 82000 - Processing at 25.00 fps]
Mar 23 15:43:46 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 83000 - Capturing at 25.00 fps]
Mar 23 15:43:48 Server-Debian zma_m6[2127]: INF [Monitor-6: 83000 - Processing at 25.00 fps]
Mar 23 15:44:26 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 84000 - Capturing at 25.00 fps]
Mar 23 15:44:28 Server-Debian zma_m6[2127]: INF [Monitor-6: 84000 - Processing at 25.00 fps]
Mar 23 15:45:06 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 85000 - Capturing at 25.00 fps]
Mar 23 15:45:08 Server-Debian zma_m6[2127]: INF [Monitor-6: 85000 - Processing at 25.00 fps]
Mar 23 15:45:46 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 86000 - Capturing at 25.00 fps]
Mar 23 15:45:48 Server-Debian zma_m6[2127]: INF [Monitor-6: 86000 - Processing at 25.00 fps]
Mar 23 15:46:26 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 87000 - Capturing at 25.00 fps]
Mar 23 15:46:28 Server-Debian zma_m6[2127]: INF [Monitor-6: 87000 - Processing at 25.00 fps]
Mar 23 15:47:06 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 88000 - Capturing at 25.00 fps]
Mar 23 15:47:08 Server-Debian zma_m6[2127]: INF [Monitor-6: 88000 - Processing at 25.00 fps]
Mar 23 15:47:46 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 89000 - Capturing at 25.00 fps]
Mar 23 15:47:48 Server-Debian zma_m6[2127]: INF [Monitor-6: 89000 - Processing at 25.00 fps]
Mar 23 15:48:26 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 90000 - Capturing at 25.00 fps]
Mar 23 15:48:28 Server-Debian zma_m6[2127]: INF [Monitor-6: 90000 - Processing at 25.00 fps]
Mar 23 15:49:06 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 91000 - Capturing at 25.00 fps]
Mar 23 15:49:08 Server-Debian zma_m6[2127]: INF [Monitor-6: 91000 - Processing at 25.00 fps]
Mar 23 15:49:46 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 92000 - Capturing at 25.00 fps]
Mar 23 15:49:48 Server-Debian zma_m6[2127]: INF [Monitor-6: 92000 - Processing at 25.00 fps]
Mar 23 15:50:26 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 93000 - Capturing at 25.00 fps]
Mar 23 15:50:28 Server-Debian zma_m6[2127]: INF [Monitor-6: 93000 - Processing at 25.00 fps]
Mar 23 15:51:06 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 94000 - Capturing at 25.00 fps]
Mar 23 15:51:08 Server-Debian zma_m6[2127]: INF [Monitor-6: 94000 - Processing at 25.00 fps]
Mar 23 15:51:46 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 95000 - Capturing at 25.00 fps]
Mar 23 15:51:48 Server-Debian zma_m6[2127]: INF [Monitor-6: 95000 - Processing at 25.00 fps]
Mar 23 15:52:26 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 96000 - Capturing at 25.00 fps]
Mar 23 15:52:28 Server-Debian zma_m6[2127]: INF [Monitor-6: 96000 - Processing at 25.00 fps]
Mar 23 15:53:06 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 97000 - Capturing at 25.00 fps]
Mar 23 15:53:08 Server-Debian zma_m6[2127]: INF [Monitor-6: 97000 - Processing at 25.00 fps]
Mar 23 15:53:46 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 98000 - Capturing at 25.00 fps]
Mar 23 15:53:48 Server-Debian zma_m6[2127]: INF [Monitor-6: 98000 - Processing at 25.00 fps]
Mar 23 15:54:26 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 99000 - Capturing at 25.00 fps]
Mar 23 15:54:28 Server-Debian zma_m6[2127]: INF [Monitor-6: 99000 - Processing at 25.00 fps]
Mar 23 15:55:06 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 100000 - Capturing at 25.00 fps]
Mar 23 15:55:08 Server-Debian zma_m6[2127]: INF [Monitor-6: 100000 - Processing at 25.00 fps]
Mar 23 15:55:46 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 101000 - Capturing at 25.00 fps]
Mar 23 15:55:48 Server-Debian zma_m6[2127]: INF [Monitor-6: 101000 - Processing at 25.00 fps]
Mar 23 15:56:26 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 102000 - Capturing at 25.00 fps]
Mar 23 15:56:28 Server-Debian zma_m6[2127]: INF [Monitor-6: 102000 - Processing at 25.00 fps]
Mar 23 15:57:06 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 103000 - Capturing at 25.00 fps]
Mar 23 15:57:08 Server-Debian zma_m6[2127]: INF [Monitor-6: 103000 - Processing at 25.00 fps]
Mar 23 15:57:46 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 104000 - Capturing at 25.00 fps]
Mar 23 15:57:48 Server-Debian zma_m6[2127]: INF [Monitor-6: 104000 - Processing at 25.00 fps]
Mar 23 15:58:26 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 105000 - Capturing at 25.00 fps]
Mar 23 15:58:28 Server-Debian zma_m6[2127]: INF [Monitor-6: 105000 - Processing at 25.00 fps]
Mar 23 15:59:06 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 106000 - Capturing at 25.00 fps]
Mar 23 15:59:08 Server-Debian zma_m6[2127]: INF [Monitor-6: 106000 - Processing at 25.00 fps]
Mar 23 15:59:46 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 107000 - Capturing at 25.00 fps]
Mar 23 15:59:48 Server-Debian zma_m6[2127]: INF [Monitor-6: 107000 - Processing at 25.00 fps]
Mar 23 16:00:25 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 108000 - Capturing at 25.64 fps]
Mar 23 16:00:28 Server-Debian zma_m6[2127]: INF [Monitor-6: 108000 - Processing at 25.00 fps]
Mar 23 16:01:05 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 109000 - Capturing at 25.00 fps]
Mar 23 16:01:08 Server-Debian zma_m6[2127]: INF [Monitor-6: 109000 - Processing at 25.00 fps]
Mar 23 16:01:45 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 110000 - Capturing at 25.00 fps]
Mar 23 16:01:48 Server-Debian zma_m6[2127]: INF [Monitor-6: 110000 - Processing at 25.00 fps]
Mar 23 16:02:11 Server-Debian zmpkg[3428]: INF [Command: start]
Mar 23 16:02:16 Server-Debian zmpkg[3435]: INF [Command: status]
Mar 23 16:02:25 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 111000 - Capturing at 25.00 fps]
Mar 23 16:02:27 Server-Debian zma_m6[2127]: INF [Monitor-6: 111000 - Processing at 25.64 fps]
Mar 23 16:03:05 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 112000 - Capturing at 25.00 fps]
Mar 23 16:03:07 Server-Debian zma_m6[2127]: INF [Monitor-6: 112000 - Processing at 25.00 fps]
Mar 23 16:03:45 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 113000 - Capturing at 25.00 fps]
Mar 23 16:03:47 Server-Debian zma_m6[2127]: INF [Monitor-6: 113000 - Processing at 25.00 fps]
Mar 23 16:04:25 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 114000 - Capturing at 25.00 fps]
Mar 23 16:04:27 Server-Debian zma_m6[2127]: INF [Monitor-6: 114000 - Processing at 25.00 fps]
Mar 23 16:05:05 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 115000 - Capturing at 25.00 fps]
Mar 23 16:05:07 Server-Debian zma_m6[2127]: INF [Monitor-6: 115000 - Processing at 25.00 fps]
Mar 23 16:05:45 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 116000 - Capturing at 25.00 fps]
Mar 23 16:05:47 Server-Debian zma_m6[2127]: INF [Monitor-6: 116000 - Processing at 25.00 fps]
Mar 23 16:06:25 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 117000 - Capturing at 25.00 fps]
Mar 23 16:06:27 Server-Debian zma_m6[2127]: INF [Monitor-6: 117000 - Processing at 25.00 fps]
Mar 23 16:07:05 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 118000 - Capturing at 25.00 fps]
Mar 23 16:07:07 Server-Debian zma_m6[2127]: INF [Monitor-6: 118000 - Processing at 25.00 fps]
Mar 23 16:07:45 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 119000 - Capturing at 25.00 fps]
Mar 23 16:07:47 Server-Debian zma_m6[2127]: INF [Monitor-6: 119000 - Processing at 25.00 fps]
Mar 23 16:08:25 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 120000 - Capturing at 25.00 fps]
Mar 23 16:08:27 Server-Debian zma_m6[2127]: INF [Monitor-6: 120000 - Processing at 25.00 fps]
Mar 23 16:09:01 Server-Debian /USR/SBIN/CRON[3750]: (root) CMD ( [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -type f -cmin +$(/usr/lib/php5/maxlifetime) -delete)
Mar 23 16:09:05 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 121000 - Capturing at 25.00 fps]
Mar 23 16:09:07 Server-Debian zma_m6[2127]: INF [Monitor-6: 121000 - Processing at 25.00 fps]
Mar 23 16:09:45 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 122000 - Capturing at 25.00 fps]
Mar 23 16:09:47 Server-Debian zma_m6[2127]: INF [Monitor-6: 122000 - Processing at 25.00 fps]
Mar 23 16:10:25 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 123000 - Capturing at 25.00 fps]
Mar 23 16:10:27 Server-Debian zma_m6[2127]: INF [Monitor-6: 123000 - Processing at 25.00 fps]
Mar 23 16:11:05 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 124000 - Capturing at 25.00 fps]
Mar 23 16:11:07 Server-Debian zma_m6[2127]: INF [Monitor-6: 124000 - Processing at 25.00 fps]
Mar 23 16:11:12 Server-Debian zmtrigger[3778]: INF [Trigger daemon starting]
Mar 23 16:11:12 Server-Debian zmtrigger[3778]: INF [Opening connection 'Chan1']
Mar 23 16:11:12 Server-Debian zmtrigger[3778]: INF [Opening connection 'Chan2']
Mar 23 16:11:45 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 125000 - Capturing at 25.00 fps]
Mar 23 16:11:47 Server-Debian zma_m6[2127]: INF [Monitor-6: 125000 - Processing at 25.00 fps]
Mar 23 16:12:25 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 126000 - Capturing at 25.00 fps]
Mar 23 16:12:27 Server-Debian zma_m6[2127]: INF [Monitor-6: 126000 - Processing at 25.00 fps]
Mar 23 16:13:05 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 127000 - Capturing at 25.00 fps]
Mar 23 16:13:07 Server-Debian zma_m6[2127]: INF [Monitor-6: 127000 - Processing at 25.00 fps]
Mar 23 16:13:45 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 128000 - Capturing at 25.00 fps]
Mar 23 16:13:47 Server-Debian zma_m6[2127]: INF [Monitor-6: 128000 - Processing at 25.00 fps]
Mar 23 16:14:25 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 129000 - Capturing at 25.00 fps]
Mar 23 16:14:27 Server-Debian zma_m6[2127]: INF [Monitor-6: 129000 - Processing at 25.00 fps]
Mar 23 16:15:05 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 130000 - Capturing at 25.00 fps]
Mar 23 16:15:07 Server-Debian zma_m6[2127]: INF [Monitor-6: 130000 - Processing at 25.00 fps]
Mar 23 16:15:45 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 131000 - Capturing at 25.00 fps]
Mar 23 16:15:47 Server-Debian zma_m6[2127]: INF [Monitor-6: 131000 - Processing at 25.00 fps]
Mar 23 16:16:25 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 132000 - Capturing at 25.00 fps]
Mar 23 16:16:27 Server-Debian zma_m6[2127]: INF [Monitor-6: 132000 - Processing at 25.00 fps]
Mar 23 16:17:01 Server-Debian /USR/SBIN/CRON[3866]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Mar 23 16:17:05 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 133000 - Capturing at 25.00 fps]
Mar 23 16:17:07 Server-Debian zma_m6[2127]: INF [Monitor-6: 133000 - Processing at 25.00 fps]
Mar 23 16:17:45 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 134000 - Capturing at 25.00 fps]
Mar 23 16:17:47 Server-Debian zma_m6[2127]: INF [Monitor-6: 134000 - Processing at 25.00 fps]
Mar 23 16:18:25 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 135000 - Capturing at 25.00 fps]
Mar 23 16:18:27 Server-Debian zma_m6[2127]: INF [Monitor-6: 135000 - Processing at 25.00 fps]
Mar 23 16:19:05 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 136000 - Capturing at 25.00 fps]
Mar 23 16:19:07 Server-Debian zma_m6[2127]: INF [Monitor-6: 136000 - Processing at 25.00 fps]
Mar 23 16:19:33 Server-Debian zmtrigger[3958]: INF [Trigger daemon starting]
Mar 23 16:19:33 Server-Debian zmtrigger[3958]: INF [Opening connection 'Chan1']
Mar 23 16:19:33 Server-Debian zmtrigger[3958]: INF [Opening connection 'Chan2']
Mar 23 16:19:33 Server-Debian zmtrigger[3958]: INF [Opening connection 'Chan4']
Mar 23 16:19:45 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 137000 - Capturing at 25.00 fps]
Mar 23 16:19:47 Server-Debian zma_m6[2127]: INF [Monitor-6: 137000 - Processing at 25.00 fps]
Mar 23 16:20:02 Server-Debian zms[3959]: INF [Debug Level = 0, Debug Log = <none>]
Mar 23 16:20:26 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 138000 - Capturing at 24.39 fps]
Mar 23 16:20:29 Server-Debian zma_m6[2127]: INF [Monitor-6: 138000 - Processing at 23.81 fps]
Mar 23 16:21:08 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 139000 - Capturing at 23.81 fps]
Mar 23 16:21:10 Server-Debian zma_m6[2127]: INF [Monitor-6: 139000 - Processing at 24.39 fps]
Mar 23 16:21:16 Server-Debian zms[3959]: INF [Got signal 15 (Terminated), exiting]
Mar 23 16:21:48 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 140000 - Capturing at 25.00 fps]
Mar 23 16:21:50 Server-Debian zma_m6[2127]: INF [Monitor-6: 140000 - Processing at 25.00 fps]
Mar 23 16:22:28 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 141000 - Capturing at 25.00 fps]
Mar 23 16:22:30 Server-Debian zma_m6[2127]: INF [Monitor-6: 141000 - Processing at 25.00 fps]
Mar 23 16:22:59 Server-Debian zmtrigger[3977]: INF [Trigger daemon starting]
Mar 23 16:22:59 Server-Debian zmtrigger[3977]: INF [Opening connection 'Chan1']
Mar 23 16:22:59 Server-Debian zmtrigger[3977]: INF [Opening connection 'Chan2']
Mar 23 16:23:08 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 142000 - Capturing at 25.00 fps]
Mar 23 16:23:10 Server-Debian zma_m6[2127]: INF [Monitor-6: 142000 - Processing at 25.00 fps]
Mar 23 16:23:43 Server-Debian zmtrigger[4053]: INF [Trigger daemon starting]
Mar 23 16:23:43 Server-Debian zmtrigger[4053]: INF [Opening connection 'Chan1']
Mar 23 16:23:43 Server-Debian zmtrigger[4053]: INF [Opening connection 'Chan2']
Mar 23 16:23:48 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 143000 - Capturing at 25.00 fps]
Mar 23 16:23:50 Server-Debian zma_m6[2127]: INF [Monitor-6: 143000 - Processing at 25.00 fps]
Mar 23 16:24:28 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 144000 - Capturing at 25.00 fps]
Mar 23 16:24:30 Server-Debian zma_m6[2127]: INF [Monitor-6: 144000 - Processing at 25.00 fps]
Mar 23 16:25:08 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 145000 - Capturing at 25.00 fps]
Mar 23 16:25:10 Server-Debian zma_m6[2127]: INF [Monitor-6: 145000 - Processing at 25.00 fps]
Mar 23 16:25:22 Server-Debian zmtrigger[4056]: INF [Trigger daemon starting]
Mar 23 16:25:22 Server-Debian zmtrigger[4056]: INF [Opening connection 'Chan1']
Mar 23 16:25:22 Server-Debian zmtrigger[4056]: INF [Opening connection 'Chan2']
Mar 23 16:25:22 Server-Debian zmtrigger[4056]: INF [Opening connection 'Chan4']
Mar 23 16:25:48 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 146000 - Capturing at 25.00 fps]
Mar 23 16:25:50 Server-Debian zma_m6[2127]: INF [Monitor-6: 146000 - Processing at 25.00 fps]
Mar 23 16:26:28 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 147000 - Capturing at 25.00 fps]
Mar 23 16:26:30 Server-Debian zma_m6[2127]: INF [Monitor-6: 147000 - Processing at 25.00 fps]
Mar 23 16:27:07 Server-Debian zmc_dvideo0[2091]: INF [Monitor-6: 148000 - Capturing at 25.64 fps]
Mar 23 16:27:10 Server-Debian zma_m6[2127]: INF [Monitor-6: 148000 - Processing at 25.00 fps]

Re: Trigger event via bash

Posted: Thu Mar 24, 2011 2:35 pm
by osoroco
according to this:
"Can't bind: Die Adresse wird bereits verwendet at /usr/share/perl5/ZoneMinder/Trigger/Connection.pm line 87"
something is already listening on 6802

check that no other zmtrigger.pl is running or other service is listening on that port.
-Or- that zmtrigger.pl is trying to open the same port twice (doubt it's this)

I've only just begun using zmtrigger.pl to listen to alerts made by the remote cameras (doing motion detection) and followed this guide: http://www.zoneminder.com/wiki/index.ph ... nDetection
It does some editing to zmtrigger.pl, maybe one of those changes can help.
Note: that guide changes zmtrigger so that you don't have to include the '+' sign on '6|on 10|255|test|test'

Re: Trigger event via bash

Posted: Fri Mar 25, 2011 6:13 pm
by Streethunter
Thanks for your answer,
but I read a littlebit more and now I think that I should write a small perl script which I can start in my Bashscript. It should trigger an Event for a few seconds and write the eventname or id into a textfile.
But I never worked with Perl and so I can't get it to work.
I tried it like that:

#!/usr/local/bin/perl -w

use ZoneMinder::SharedMem;
use ZoneMinder::SharedMem qw(:all);

zmTriggerEventOn ( 6, 255, RFID [, "Opening the frontdoor", "Frontdoor" ] );
zmTriggerEventOff ( 6 );
$event_id = zmGetLastEvent ( 6 );

open(TXT, "<test.txt");
print test.txt $event:id;
close(TXT)


can somebody helping me with a script like this :)

Thanks

Re: Trigger event via bash

Posted: Fri Mar 25, 2011 7:13 pm
by zmmochad
Try this from command line.

echo "6|on+10|255|test|test" | nc localhost 6802

Re: Trigger event via bash

Posted: Fri Mar 25, 2011 7:26 pm
by Streethunter
That doesn't work, too :(

echo "6|on+10|255|test|test" | nc localhost 6802
localhost [127.0.0.1] 6802 (?) : Connection refused

Re: Trigger event via bash

Posted: Sat Mar 26, 2011 3:48 pm
by Streethunter
Ok, it's working

Thank you