Nico,

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

Regards,

Kit


Message: 3
Date: Wed, 9 Feb 2011 19:07:22 +0100
From: Nico Schl?mer <nico.schloe...@gmail.com>
Subject: screen, detached, stdout
To: screen-users@gnu.org
Message-ID:
        <AANLkTimAuMS=ojah1brnyrrbevgekusj1y8jhdm9c...@mail.gmail.com>
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.

Cheers,
Nico



------------------------------

_______________________________________________
screen-users mailing list
screen-users@gnu.org
http://lists.gnu.org/mailman/listinfo/screen-users

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


_______________________________________________
screen-users mailing list
screen-users@gnu.org
http://lists.gnu.org/mailman/listinfo/screen-users

Reply via email to