[Top][All Lists]

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

Re: screen, detached, stdout

From: Andrew McGlashan
Subject: Re: screen, detached, stdout
Date: Sat, 12 Feb 2011 23:42:23 +1100
User-agent: Thunderbird (Windows/20100228)

Hi Nico,

Nico Schlömer wrote:
Thnaks for hints!
One odd thing I noticed about the -L option, that is that first
character doesn't seem to logged.

$ screen -L -d -m echo 123
$ cat screelog.0


I tried it and got your same results ?  Weird.

btw .... a slight mod to "name the screen" as per the current working directory at the time of screen invocation.

# alias ns9='if [ -f screenlog.0 ];then rm screenlog.0;fi &&
(/usr/bin/screen -S $(basename $(pwd)) -L -d -m time /usr/local/bin/; tail -99f
screenlog.0) && mv screenlog.0 my-test-screenlog.out'

I also have a nice alias to check running screen jobs, you might like that too:

alias sl='/usr/bin/screen -list;for x in ```cd /var/run/screen/S-root/;/bin/ls```;do echo;echo sr $x;```echo $x|/usr/bin/awk -F . '\''{print "/usr/bin/pstree -aG",$1}'\''```;done;echo;/usr/bin/w'

 -- it's a bit messier, but it works for me.


reply via email to

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