[Top][All Lists]

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

screen, detached, stdout

From: Kit Gerrits
Subject: screen, detached, stdout
Date: Sat, 12 Feb 2011 11:16:09 +0100


You can use Screen's internallo logging feature to write the output to a
screen -L -d -m `/path/to/my/exec 
  logging of the current window to the file "screen-log.n".



Message: 3
Date: Wed, 9 Feb 2011 19:07:22 +0100
From: Nico Schl?mer <address@hidden>
Subject: screen, detached, stdout
To: address@hidden
Content-Type: text/plain; charset=ISO-8859-1

Hi all,

I would like to start a series of jobs in the background and log their
stdout in specific files. The idea is to use screen for this, and I went
ahead and typed

$ screen -d -m /path/to/my/exec

which puts the job nicely in the background. Let's log stdout:

$ screen -d -m /path/to/my/exec | tee output.log

Ah, that doesn't work as the it tees the output of `screen` to the file.
Hmm.. How about

$ screen -d -m `/path/to/my/exec | tee output.log`

Now, it directs the output alright, but the session isn't detached anymore.

I don't quite understand why this happens, so if you guys have a clue that'd
be great. I'm also looking for a solution to the problem of course.



screen-users mailing list

End of screen-users Digest, Vol 1151, Issue 1

reply via email to

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