Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Selectively redirect only stdout to a file(Selectively redirect only stdout to a file)
Selectively redirect only stdout to a file [message #1774448] Sat, 14 October 2017 21:10 Go to next message
Robert Graham is currently offline Robert GrahamFriend
Messages: 1
Registered: October 2017
Junior Member
Hi,

I have seen that it is possible to redirect all console output to a file (Run Configuration > Common > Standard Input and Output). This redirects both stderr (System.err) and stdout (System.out).

Part of the point of having two output streams is so they can go different places.

What I would like to do is redirect stdout to a file but have stderr still go to the Console. Is that possible?

Robert
Re: Selectively redirect only stdout to a file [message #1864998 is a reply to message #1774448] Tue, 23 April 2024 01:07 Go to previous message
Colin Hercus is currently offline Colin HercusFriend
Messages: 1
Registered: April 2024
Junior Member
Hi,

I'm having the same issue with C++ apps. Is there any solution? Previously I was using Sunstudio which could redirect stdout & stderr to separate files.

Colin
Previous Topic:Eclipse for Java syntax checker error for generic arrays
Next Topic:Does anyone have insights ?
Goto Forum:
  


Current Time: Fri Apr 26 08:45:36 GMT 2024

Powered by FUDForum. Page generated in 0.03257 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top