Ben's notes

Linux, Unix, network, radio...

User Tools

Site Tools


rotatelogs

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Last revision Both sides next revision
rotatelogs [2014/06/16 22:49]
admin created
rotatelogs [2014/06/16 22:57]
admin [Rotatelogs - log rotating stdout]
Line 2: Line 2:
 ~~TOC~~ ~~TOC~~
 =====Rotatelogs - log rotating stdout===== =====Rotatelogs - log rotating stdout=====
-<code>apt-get install apache2-utils+  * 86400 = rotate every night, 3600 is rotate at the beginning of the hour. 
 +  * 100M = max 100 megabytes.
  
 +<code>apt-get install apache2-utils
 +/usr/local/bin/SerialWatch.exp ttyUSB0 | rotatelogs -f /mnt/ram/p1data 86400 100M
 </code> </code>
rotatelogs.txt · Last modified: 2014/06/16 22:57 by admin