Serial Comunication On Linux, compiled on Windows

I use picocom to set the don't reset on disconnect (-r) and to set the serial rate (-b 115200)
picocom -r -b 115200 /dev/ttyUSB0

and head to get my output

I call a bash script every five minutes to read, clean up, write and post to pachube

#!/bin/sh
FILEDATE="`date +%Y%m`"
FILEOUT="/etc/lgt-$FILEDATE.log"
DATE="`date +%Y%m%d%H%M%S' '%d-%b-%Y' '%T`"
USBOUT="`/opt/bin/head -n2 /dev/ttyUSB0`"
#echo "$DATE"
echo "$DATE $USBOUT" | tr -d '\n' >> $FILEOUT
T6="`echo $USBOUT | tr -d '\n' | cut -d "]" -f 5 | cut -d "[" -f 1`"
curl --request PUT --header "X-PachubeApiKey: xxxxxx"  --data "23,$T6" "api.pachube.com/v2/feeds/xxxx.csv"
echo "$T6"
exit 0