screen, detached, stdout
"Kit Gerrits" <[email protected]>
| Newsgroups | gmane.comp.gnu.screen.user |
|---|---|
| Message-ID | <[email protected]> |
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 <[email protected]> Subject: screen, detached, stdout To: screen-users-mXXj517/[email protected] Message-ID: <AANLkTimAuMS=OJAh1BRNYrRbevGekusJ1y8jhDm9Cap_-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 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-mXXj517/[email protected] http://lists.gnu.org/mailman/listinfo/screen-users End of screen-users Digest, Vol 1151, Issue 1 *********************************************