redirecting stderr/stdout AFTER a program has been started

Roger Oberholtzer roger
Thu Oct 20 09:31:15 PDT 2005


On Thu, 2005-10-20 at 15:38, Man-wai Chang wrote:
> Can it be done?

I doubt it. Unless the program is written to intercept, say, a signal,
that somehow communicates to it that the change is wanted. The main
problem is that some I/O to the file is buffered in the program.
Changing this without the program's knowledge would surely lead to
corruption. Hence, a signal that lets the program know this and be a
part of the change would be needed.

+????????????????????????????+???????????????????????????????+
? Roger Oberholtzer          ?   E-mail: roger at opq.se        ?
? OPQ Systems AB             ?      WWW: http://www.opq.se/  ?
? Kapellgr?nd 7              ?                               ?
? P. O. Box 4205             ?    Phone: Int + 46 8   314223 ?
? 102 65 Stockholm           ?   Mobile: Int + 46 733 621657 ?
? Sweden                     ?      Fax: Int + 46 8   314223 ?
+????????????????????????????+???????????????????????????????+



More information about the Linux-users mailing list