Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 34 lines (20 sloc) 0.398 kB
#!/bin/bash
LOCKFILE=/tmp/gettingPhoneData
file=$1;
## get the data file off the telephone
## protected by a lock
#get a lock
#lockfile $LOCKFILE
# store data in /tmp
cd /tmp/
# pull the data
adb pull /sdcard/accelDataLog
if [ $? -ne 0 ]; then
# rm -rf $LOCKFILE
echo "Oops, could not pull, bailing."
exit -1
fi
cd -
mv /tmp/accelDataLog $file
# remove lockfile
#rm -rf $LOCKFILE
Jump to Line
Something went wrong with that request. Please try again.