screen-users
[Top][All Lists]
Advanced

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

Re: Auto-logging does not start for detached session


From: Michael Schroeder
Subject: Re: Auto-logging does not start for detached session
Date: Mon, 19 Feb 2007 14:51:00 +0100
User-agent: Mutt/1.4.2.1i

On Fri, Feb 16, 2007 at 01:31:13AM +0100, Alexander Kriegisch wrote:
> # create detached screen session with auto-logging
> screen -dm -L -S fritzterm
> # maybe decreasing the flush interval helps?
> screen -S fritzterm -X logfile flush 0
> # issue remote command inside the session
> screen -S fritzterm -X exec ls -l /
> 
> # wait a moment, then check log file's content
> sleep 2
> cat /var/tmp/fritzterm/screenlog.0
> 
> Unfortunately the effect is as described above. No logging whatsoever,
> no matter hown many commands are issued to the screen session.

This is because screen doesn't know which window to use for the
'exec' command. Add '-p 0' and it should work.

Cheers,
  Michael.

-- 
Michael Schroeder           address@hidden
main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);}




reply via email to

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