Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #27805
| Newsgroups | comp.lang.java.programmer |
|---|---|
| Date | 2014-03-21 13:13 -0700 |
| Message-ID | <1df2cef3-b358-465c-9d56-1c8739a17051@googlegroups.com> (permalink) |
| Subject | can Java program abolish file descriptor 1 so no any programs can print to the monitor? |
| From | www <xsli2@yahoo.com> |
a program currently running is printing something to the terminal. I am wondering if I can use some Java to intercept those printed message so that those message do not show up on the terminal. That program is not started by the Java program. I am working on Linux. My understanding of file system is that there is a filedescriptor 0 -- the keyboard input are saved in that file and other programs take it from there; there is another filesdescriptor 1 -- the messages printed by computer programs are put into that file first, then its content is dumped to the monitor. So I think if I can let Java code erase my computer filedescriptor 1, then nothing will be printed to the monitor. file descriptor 2 is another file and is for the stderr. I think this is an interesting exercise for me.
Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar | Unroll thread
can Java program abolish file descriptor 1 so no any programs can print to the monitor? www <xsli2@yahoo.com> - 2014-03-21 13:13 -0700
Re: can Java program abolish file descriptor 1 so no any programs can print to the monitor? Eric Sosman <esosman@comcast-dot-net.invalid> - 2014-03-21 17:14 -0400
Re: can Java program abolish file descriptor 1 so no any programs can print to the monitor? Roedy Green <see_website@mindprod.com.invalid> - 2014-03-21 15:54 -0700
Re: can Java program abolish file descriptor 1 so no any programs can print to the monitor? Joerg Meier <joergmmeier@arcor.de> - 2014-03-21 23:59 +0100
Re: can Java program abolish file descriptor 1 so no any programs can print to the monitor? Roedy Green <see_website@mindprod.com.invalid> - 2014-03-22 02:32 -0700
Re: can Java program abolish file descriptor 1 so no any programs can print to the monitor? Joerg Meier <joergmmeier@arcor.de> - 2014-03-22 11:33 +0100
Re: can Java program abolish file descriptor 1 so no any programs can print to the monitor? Andreas Leitgeb <avl@auth.logic.tuwien.ac.at> - 2014-03-22 11:24 +0000
csiph-web