autotrigger.sh 328 B

12345678910111213141516171819
  1. #! /bin/bash
  2. function pci {
  3. PCILIB_PATH=`which pci`
  4. #LD_LIBRARY_PATH="$PCILIB_PATH"
  5. $PCILIB_PATH/pci $*
  6. }
  7. echo "Starting the grabber"
  8. pci -g -o /dev/null --run-time 12000000 --verbose 10 &
  9. pid=$!
  10. usleep 100000
  11. pci -w 9040 80004a01
  12. usleep 10000000
  13. pci -w 9040 80000201
  14. echo "Waiting grabber to finish"
  15. wait $pid