Re: Redirecting stdout of running program
- From: Tim Smith <reply_in_group@xxxxxxxxxxxxxxxx>
- Date: Fri, 29 Aug 2008 22:37:33 -0700
In article
<0f52ea5d-2f27-4f9d-8bf4-fe0cac344999@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
David Schwartz <davids@xxxxxxxxxxxxx> wrote:
Is there any way to redirect the stdout of a running program?
(please don't suggest me to redirect output in advance or to use nohup:
this is obvious but I am speaking for the case when the program runs
much longer than it was expected)
No, and for fairly good reasons. The program may check early in its
run whether it's writing to a terminal or a file, and may fail if
operations specific to that type later fail.
That isn't a fairly good reason, for a Unix-like system. The Unix
philosophy includes giving us sharp tools, and leaving it up to us to
use them without cutting ourselves. Not providing a tool because some
people might use it in ways that might confuse some programs is not the
Unix way.
--
--Tim Smith
.
- References:
- Redirecting stdout of running program
- From: linuxnewbie1234
- Re: Redirecting stdout of running program
- From: David Schwartz
- Redirecting stdout of running program
- Prev by Date: Re: how to set network in linux development kernel
- Next by Date: Re: Development Kernel
- Previous by thread: Re: Redirecting stdout of running program
- Next by thread: Re: Redirecting stdout of running program
- Index(es):
Relevant Pages
|