Ben's notes

Linux, Unix, network, radio...

User Tools

Site Tools


This is an old revision of the document!


Rotatelogs - log rotating stdout

  • 86400 = rotate every night, 3600 is rotate at the beginning of the hour.
  • 100M = max 100 megabytes.
apt-get install apache2-utils
/usr/local/bin/SerialWatch.exp ttyUSB0 | rotatelogs -f /mnt/ram/p1data 86400 100M
rotatelogs.1402952233.txt.gz · Last modified: 2014/06/16 22:57 by admin