summaryrefslogtreecommitdiffstats
path: root/tests/autotrigger.sh
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2015-04-27 02:28:57 +0200
committerSuren A. Chilingaryan <csa@suren.me>2015-04-27 02:28:57 +0200
commite1265fa32837f457ee2c2fa259d12c9545af4bbf (patch)
tree64b8d5f1c81c14f019047b0cb00cb77c2dcecf55 /tests/autotrigger.sh
parenta37beb44d59cca329d0d9345c21505af81030688 (diff)
downloadipecamera-e1265fa32837f457ee2c2fa259d12c9545af4bbf.tar.gz
ipecamera-e1265fa32837f457ee2c2fa259d12c9545af4bbf.tar.bz2
ipecamera-e1265fa32837f457ee2c2fa259d12c9545af4bbf.tar.xz
ipecamera-e1265fa32837f457ee2c2fa259d12c9545af4bbf.zip
First stand-alone ipecamera implementation
Diffstat (limited to 'tests/autotrigger.sh')
-rwxr-xr-xtests/autotrigger.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/autotrigger.sh b/tests/autotrigger.sh
new file mode 100755
index 0000000..b7318c8
--- /dev/null
+++ b/tests/autotrigger.sh
@@ -0,0 +1,19 @@
+#! /bin/bash
+
+function pci {
+ PCILIB_PATH=`which pci`
+ #LD_LIBRARY_PATH="$PCILIB_PATH"
+ $PCILIB_PATH/pci $*
+}
+
+echo "Starting the grabber"
+pci -g -o /dev/null --run-time 12000000 --verbose 10 &
+pid=$!
+
+usleep 100000
+pci -w 9040 80004a01
+usleep 10000000
+pci -w 9040 80000201
+
+echo "Waiting grabber to finish"
+wait $pid