On Wed, Jan 20, 2010 at 12:00 PM, Sanjeev Gupta
<[email protected]> wrote:
> I am invoking a shell script in a C++ program using 'system()' finction (I
> believe system() is the only way to call a script from C++ program. Please
> correct me if i am wrong).
There are several ways to do it, but using system() is the simplest.
Maybe you can show the actual code you using.
> The proble is system function does not return me the exit status of the
> script. Can anybody tell me how i can get the same.
What platform and what compiler? Have you read the documentation from
your compiler on how to get exit statuses from the shell?
-- Brett
------------------------------------------------------------
"In the rhythm of music a secret is hidden;
If I were to divulge it, it would overturn the world."
-- Jelaleddin Rumi