Re: Command pipes in C++

From: Peter van Merkerk (merkerk_at_deadspam.com)
Date: 06/30/04


Date: Wed, 30 Jun 2004 13:25:42 +0200

Peng Yuan Fan wrote:

> Hi, sorry if you found I have multi posted in different groups. It didn't
> appear in that group.
>
> I am trying to write an automated testing program with CxxTest, which in
> turn needs to talk to gdb through the command line.
>
> The program should give some command to gdb, the debugger program. And then
> get the results out of it. Just like when we debug with gdb, we type in
> those commands, and see the results. But this has to be done in an automated
> way.
>
> It is very similar to the pipes in scripting language, but the test has to
> be done with C++.

Standard C++ has no support for pipes; you need platform specific
methods to accomplish what you want. Maybe your platform supports the
popen() function.

-- 
Peter van Merkerk
peter.van.merkerk(at)dse.nl


Relevant Pages

  • Re: Command pipes in C++
    ... > The program should give some command to gdb, ... Standard C++ has no support for pipes; you need platform specific ...
    (alt.comp.lang.learn.c-cpp)
  • Re: pipes in C++
    ... > The program should give some command to gdb, ... Processes with Redirected Standard Handles" in MSDN and see if that answers ...
    (microsoft.public.win32.programmer.messaging)
  • Re: pipes in C++
    ... > The program should give some command to gdb, ... Processes with Redirected Standard Handles" in MSDN and see if that answers ...
    (microsoft.public.win32.programmer.kernel)
  • Command pipes in C++
    ... I am trying to write an automated testing program with CxxTest, ... The program should give some command to gdb, ... Peng ...
    (comp.lang.cpp)
  • Command pipes in C++
    ... I am trying to write an automated testing program with CxxTest, ... The program should give some command to gdb, ... Peng ...
    (alt.comp.lang.learn.c-cpp)