On Wed, 6 Jul 2005, Bob Schmertz wrote:

> David Zakar incurred the wrath of Bob on Jul 6, by saying
>
> >Folks,
> >
> >What's the currently preferred method for executing a shell command in
> >the midst of a C++ program, compiled with g++? I'm writing some code
> >where I'd like to echo some variables in /proc entries...
>
> Anything wrong with good old "system"?
>
> Though if I were in your shoes and wanted to be 31337 I'd fopen the
> /proc entry directly...

or popen(), if you have a command that spits.

Reply via email to