[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Setting the logfile via -X
From: |
screen |
Subject: |
Re: Setting the logfile via -X |
Date: |
Tue, 29 Jun 2004 18:41:06 -0700 |
User-agent: |
Mutt/1.3.28i |
Thanks, both of these are great!
On Tue, Jun 29, 2004 at 08:12:53AM -0400, Raul wrote:
> On Mon, 28 Jun 2004 18:50:54 -0700, jason <address@hidden> wrote:
> > I'm using screen as a sort of remote control via -X and every once in a
> > while I'd like to tell screen to log to a new filename.
>
> Try this:
>
> screen -X eval "log off" "logfile new.log" "log on"
>
> Eval would be better named combo or something... it'll glue several
> commands together for you, not do the "traditional eval" runtime
> double pass like one would expect.
On Tue, Jun 29, 2004 at 09:10:53AM -0400, Shawn McMahon wrote:
> On Mon, Jun 28, 2004 at 06:50:54PM -0700, jason said:
> >
> > p.s. I guess I'll just move and zero the log file ten seconds after the
> > end of each "period", but I still think it might be nice to control the
> > configuration of an existing screen from outside...
>
> Unless you close screen, I believe doing that will simply give you a
> zero-byte file that's not being written to, and a moved file that's
> still being written to in its new location.
>
> You want "copy and zero".