Re: Command pipes in C++
From: Rolf Magnus (ramagnus_at_t-online.de)
Date: 06/30/04
- Next message: Peter van Merkerk: "Re: Command pipes in C++"
- Previous message: Peng Yuan Fan: "Command pipes in C++"
- In reply to: Peng Yuan Fan: "Command pipes in C++"
- Next in thread: Peter van Merkerk: "Re: Command pipes in C++"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 30 Jun 2004 13:13:03 +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++.
>
> Please help. Thank you very much.
>
> Peng
This is a platform sepcific question. Standard C++ has no way to open
such a pipe between two programs.
Under POSIX systems, you might want to have a look at the manual page of
the pipe() system call.
- Next message: Peter van Merkerk: "Re: Command pipes in C++"
- Previous message: Peng Yuan Fan: "Command pipes in C++"
- In reply to: Peng Yuan Fan: "Command pipes in C++"
- Next in thread: Peter van Merkerk: "Re: Command pipes in C++"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|