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

Both sides previous revisionPrevious revision
Next revision
Previous revision
rotatelogs [2014/06/16 20:57] – [Rotatelogs - log rotating stdout] adminrotatelogs [2021/10/09 15:14] (current) – external edit 127.0.0.1
Line 1: Line 1:
 {{tag>[linux rotatelogs]}} {{tag>[linux rotatelogs]}}
-~~TOC~~ 
 =====Rotatelogs - log rotating stdout===== =====Rotatelogs - log rotating stdout=====
   * 86400 = rotate every night, 3600 is rotate at the beginning of the hour.   * 86400 = rotate every night, 3600 is rotate at the beginning of the hour.
Line 6: Line 5:
  
 <code>apt-get install apache2-utils <code>apt-get install apache2-utils
-/usr/local/bin/SerialWatch.exp ttyUSB0 | rotatelogs -f /mnt/ram/p1data 86400 100M+/usr/local/bin/serialWatch.exp ttyUSB0 | rotatelogs -f /mnt/ram/p1data 86400 100M
 </code> </code>
rotatelogs.txt · Last modified: 2021/10/09 15:14 by 127.0.0.1