Re: pipes in C++

From: Gary Chanson (gchanson_at_No.Spam.TheWorld.net)
Date: 06/30/04

  • Next message: Dmitry Streblechenko \(MVP\): "Re: retrieving the deletion time of a message which will be recovered"
    Date: Wed, 30 Jun 2004 13:21:01 -0400
    
    

    "Peng Yuan Fan" <pyf20-nospam@no-spam.cam.ac.uk> wrote in message
    news:cbu8f1$rsh$1@pegasus.csx.cam.ac.uk...
    > Hi,
    > 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++.

        If I understand your question, you want to execute a command and
    redirect the output to a file or pipe. Take a look at "Spawn Console
    Processes with Redirected Standard Handles" in MSDN and see if that answers
    your questions. If not, post another message here.

    -- 
    -GJC [MS Windows SDK MVP]
    -Software Consultant (Embedded systems and Real Time Controls)
    - http://www.mvps.org/ArcaneIncantations/consulting.htm
    -gchanson@mvps.org
    

  • Next message: Dmitry Streblechenko \(MVP\): "Re: retrieving the deletion time of a message which will be recovered"

    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: Command pipes in C++
      ... > The program should give some command to gdb, ... Standard C++ has no support for pipes; you need platform specific ...
      (comp.lang.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.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 ...
      (alt.comp.lang.learn.c-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 ...
      (comp.lang.cpp)