Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Re: I/O Redirection
Re: I/O Redirection [message #45764] Fri, 18 October 2002 13:58 Go to next message
Eclipse UserFriend
Originally posted by: hongming.cs.utexas.edu

Thank you for your response.
But could you please tell me how to ask Eclipse to launch a .bat instead of
a .exe?

Yeh Hong-ming
Department of Computer Sciences
The University of Texas at Austin

"Igor S. Zamyatin" <isz@interstron.ru> wrote in message
news:aome32$26m$1@rogue.oti.com...
>
> I think your way will not working. As I understood when you specify
> application name and its arguments in order to Eclipse could launch your
> program platform simply call CreateProcess(when using Windows for
> example). And if you try to use directly CreateProcess I'm afraid that you
> will have no result too.
> Probably if you make a.bat where i/o will redirect and launch by
> CreateProcess everything will work fine.
>
> If so you may try do something like that in CDT or may be it is a new CDT
> feature and you may ask for it to developers :)
>
>
> Igor S. Zamyatin,
>
> Interstron Ltd
>
>
> Yeh Hong-ming wrote:
>
> > When debugging C/C++ in Eclipse, how do I use I/O redirection?
>
> > I tried to specify redirection, such as "> stdout.txt", in the C/C++
> > Program Arguments field of the Launch Configurations dialog box, but it
> > didn't work. Please help! Thanks.
>
> > Yeh Hong-ming
Re: I/O Redirection [message #46076 is a reply to message #45764] Mon, 21 October 2002 14:49 Go to previous messageGo to next message
Igor S. Zamyatin is currently offline Igor S. ZamyatinFriend
Messages: 56
Registered: July 2009
Member
I don't know how to do it that's why I suggested to ask for this as a
new CDT feature

Igor S. Zamyatin
Interstron Ltd.
----------------------------------------
email: isz@interstron.ru
tel: +7 (095) 269-4713
cell: +7 (902) 659-5838
www: http://www.interstron.ru


Yeh Hong-ming wrote:

> Thank you for your response.
> But could you please tell me how to ask Eclipse to launch a .bat instead of
> a .exe?

> Yeh Hong-ming
> Department of Computer Sciences
> The University of Texas at Austin

> "Igor S. Zamyatin" <isz@interstron.ru> wrote in message
> news:aome32$26m$1@rogue.oti.com...
> >
> > I think your way will not working. As I understood when you specify
> > application name and its arguments in order to Eclipse could launch your
> > program platform simply call CreateProcess(when using Windows for
> > example). And if you try to use directly CreateProcess I'm afraid that you
> > will have no result too.
> > Probably if you make a.bat where i/o will redirect and launch by
> > CreateProcess everything will work fine.
> >
> > If so you may try do something like that in CDT or may be it is a new CDT
> > feature and you may ask for it to developers :)
> >
> >
> > Igor S. Zamyatin,
> >
> > Interstron Ltd
> >
> >
> > Yeh Hong-ming wrote:
> >
> > > When debugging C/C++ in Eclipse, how do I use I/O redirection?
> >
> > > I tried to specify redirection, such as "> stdout.txt", in the C/C++
> > > Program Arguments field of the Launch Configurations dialog box, but it
> > > didn't work. Please help! Thanks.
> >
> > > Yeh Hong-ming
Re: I/O Redirection [message #46106 is a reply to message #46076] Mon, 21 October 2002 15:03 Go to previous message
Igor S. Zamyatin is currently offline Igor S. ZamyatinFriend
Messages: 56
Registered: July 2009
Member
I think you can make some changes in org.eclipse.cdt launch plugin and
CDT will launch your .bat file


Igor S. Zamyatin
Interstron Ltd.
----------------------------------------
email: isz@interstron.ru
tel: +7 (095) 269-4713
cell: +7 (902) 659-5838
www: http://www.interstron.ru


> I don't know how to do it that's why I suggested to ask for this as a
> new CDT feature

> Igor S. Zamyatin
> Interstron Ltd.
> ----------------------------------------
> email: isz@interstron.ru
> tel: +7 (095) 269-4713
> cell: +7 (902) 659-5838
> www: http://www.interstron.ru


> Yeh Hong-ming wrote:

> > Thank you for your response.
> > But could you please tell me how to ask Eclipse to launch a .bat instead of
> > a .exe?

> > Yeh Hong-ming
> > Department of Computer Sciences
> > The University of Texas at Austin

> > "Igor S. Zamyatin" <isz@interstron.ru> wrote in message
> > news:aome32$26m$1@rogue.oti.com...
> > >
> > > I think your way will not working. As I understood when you specify
> > > application name and its arguments in order to Eclipse could launch your
> > > program platform simply call CreateProcess(when using Windows for
> > > example). And if you try to use directly CreateProcess I'm afraid that
you
> > > will have no result too.
> > > Probably if you make a.bat where i/o will redirect and launch by
> > > CreateProcess everything will work fine.
> > >
> > > If so you may try do something like that in CDT or may be it is a new
CDT
> > > feature and you may ask for it to developers :)
> > >
> > >
> > > Igor S. Zamyatin,
> > >
> > > Interstron Ltd
> > >
> > >
> > > Yeh Hong-ming wrote:
> > >
> > > > When debugging C/C++ in Eclipse, how do I use I/O redirection?
> > >
> > > > I tried to specify redirection, such as "> stdout.txt", in the C/C++
> > > > Program Arguments field of the Launch Configurations dialog box, but it
> > > > didn't work. Please help! Thanks.
> > >
> > > > Yeh Hong-ming
Previous Topic:CDT Installation Problem
Next Topic:CDT Performance
Goto Forum:
  


Current Time: Sat Apr 20 02:23:03 GMT 2024

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

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

Back to the top