Commit 134031bb authored by Demo User's avatar Demo User
Browse files

adds shell script, updates time signature

parent 079c50f9
#!/bin/bash
#ntpdate -b 192.168.7.1
cd /home/debian/lidar/
logfile="log.txt"
if [ -e $logfile ]; then
touch $logfile
fi
NOW=$(date +"lidar_%Y_%m_%d_%T")
NOW2=$(echo $NOW | tr : _)
WRITE="Starting at "
echo $WRITE$NOW2 >> log.txt
echo "Running"
./get_distance -e 192.168.1.252 &> /media/card/FieldScience/lidar/$NOW2.dat
#./get_distance -e |& tee -a /media/sd0/lidar/$NOW2.dat
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment