4
PCILIB_PATH=`which pci`
5
#LD_LIBRARY_PATH="$PCILIB_PATH"
12
echo "Starting the grabber"
15
pci -g -o images.raw --run-time 1000000000 &
20
for i in `seq 1 100000`; do
21
old_size=`ls -la images.raw | cut -d " " -f 5`
25
new_size=`ls -la images.raw | cut -d " " -f 5`
26
if [ $old_size -eq $new_size ]; then
28
new_size=`ls -la images.raw | cut -d " " -f 5`
29
if [ $old_size -eq $new_size ]; then
30
echo "Incomplete frame..."
37
echo "Waiting grabber to finish"