screen-users
[Top][All Lists]
Advanced

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

Re: screen, detached, stdout


From: Nico Schlömer
Subject: Re: screen, detached, stdout
Date: Sat, 12 Feb 2011 13:48:16 +0100

>> $ screen -L -d -m echo 123
>> $ cat screenlog.0
>> 23
> I tried it and got your same results ?  Weird.

And this is what you would expect too? What happened to the "1" in "123"?

--Nico




On Sat, Feb 12, 2011 at 1:42 PM, Andrew McGlashan
<address@hidden> wrote:
> 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.
>> Try
>>
>> $ screen -L -d -m echo 123
>> $ cat screelog.0
>> 23
>>
>> Bug?
>
> 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/program.sh; 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.
>
> Cheers
> A.
>



reply via email to

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