,

Rotatelogs - log rotating stdout

apt-get install apache2-utils
/usr/local/bin/serialWatch.exp ttyUSB0 | rotatelogs -f /mnt/ram/p1data 86400 100M