Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Redirect Input and Output
Redirect Input and Output [message #697301] Sat, 16 July 2011 04:54 Go to next message
Rud Merriam is currently offline Rud MerriamFriend
Messages: 4
Registered: July 2011
Junior Member
I am writing a series of command line 'filter' applications that can pipe information from one application to the next on the command line. An example:

ByteToBit <file1 >file2


How can I test these in Eclipse? I don't see where I can put the redirection operators anywhere in Run or Debug.

-73-
Rud
Re: Redirect Input and Output [message #780086 is a reply to message #697301] Tue, 17 January 2012 06:46 Go to previous messageGo to next message
Rud Merriam is currently offline Rud MerriamFriend
Messages: 4
Registered: July 2011
Junior Member
Kind of a shame nobody answered this question in all this time. I see there are some others asking the same question.

Rud
Re: Redirect Input and Output [message #780100 is a reply to message #780086] Tue, 17 January 2012 07:23 Go to previous messageGo to next message
Abhijeet Shankargouda is currently offline Abhijeet ShankargoudaFriend
Messages: 40
Registered: January 2012
Member
Goto Run->Run Configuration
you will find some hint
Re: Redirect Input and Output [message #780441 is a reply to message #780100] Tue, 17 January 2012 22:02 Go to previous messageGo to next message
Rud Merriam is currently offline Rud MerriamFriend
Messages: 4
Registered: July 2011
Junior Member
If if were that easy I would have found the answer. If you can elaborate I'd appreciate it.
Re: Redirect Input and Output [message #780475 is a reply to message #780441] Wed, 18 January 2012 08:26 Go to previous messageGo to next message
HagenFriend
Messages: 90
Registered: April 2010
Member
On 1/17/2012 11:02 PM, Rud Merriam wrote:
> If if were that easy I would have found the answer. If you can elaborate
> I'd appreciate it.

http://catb.org/esr/faqs/smart-questions.html
























- Make a new C/C++ Run COnfiguration
- Click through the tabs of the dialog.
- READ the content on all sub-dialogs.














"Common" has an entry for redirection. If you can't find it, you should
probably better not try developing software. At all.
Re: Redirect Input and Output [message #780483 is a reply to message #780441] Wed, 18 January 2012 09:16 Go to previous messageGo to next message
Axel Mueller is currently offline Axel MuellerFriend
Messages: 1973
Registered: July 2009
Senior Member
Rud Merriam wrote on Tue, 17 January 2012 23:02
If if were that easy I would have found the answer. If you can elaborate I'd appreciate it.

Open your Run Configuration and select the tab "Arguments". Here you can insert "<file1 >file2".


Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Re: Redirect Input and Output [message #780582 is a reply to message #780475] Wed, 18 January 2012 16:55 Go to previous message
Rud Merriam is currently offline Rud MerriamFriend
Messages: 4
Registered: July 2011
Junior Member
Since I've been doing development probably longer than you've been alive I think I'll keep doing it.

I actually tried all the suggestions but they don't work. It turns out, after many hours of searching, that the MinGW of the debugger doesn't handle redirection.
Previous Topic:Convert C++ project to Syncrhonized and Git Syncrhonization issues
Next Topic:What is the [Targets] folder ?
Goto Forum:
  


Current Time: Fri Mar 29 00:22:07 GMT 2024

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

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

Back to the top