
#Read first data value and stored it as old
remote_old="$(grep remote_focus_focus_motor= remote_data1.txt)"

#Read second data value and stored it as new
remote_new="$(grep remote_focus_focus_motor= remote_data2.txt)"

#Value comparison - remote value change
if [ $remote_old == $remote_new ]; then
	/usr/bin/logger -p info "No focus change"
	echo "No focus change"
else 
	/usr/bin/logger -p info "Focus changed"
	echo "Focus changed!!!"
fi

echo "Completed"