From e1265fa32837f457ee2c2fa259d12c9545af4bbf Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Mon, 27 Apr 2015 02:28:57 +0200 Subject: First stand-alone ipecamera implementation --- tests/autotrigger.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 tests/autotrigger.sh (limited to 'tests/autotrigger.sh') 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 -- cgit v1.2.3