[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: rotating hardcopy logs

From: Andy Harrison
Subject: Re: rotating hardcopy logs
Date: Fri, 9 Mar 2007 11:25:05 -0500

On 3/5/07, Eric Smith <address@hidden> wrote:

I want to absolutely be sure of never losing any data I enter into a terminal.
A security feature like hardcaopy log <command> H
would be perfect but say I want to curtail the size of this file to have
at any time only the last n kB, what would be a good (elegant) way to do this?
Not sure logrotate is really attractive.

Nothing a shell script can't handle.

SL=screenlog-`date +%m-%d-%y-%H:%M`
if [ -f $1 ] ; then
  mv $1 $SL
  echo "Specify screen log file to archive..."

Andy Harrison
reply via email to

[Prev in Thread] Current Thread [Next in Thread]