best way I can think of is to create the process and get the status from that. 
why are you invoking a shell script, though? I can't think of a place where 
system should be used as it provides a few issues.
On Jan 20, 2010, at 10:00 AM, Sanjeev Gupta wrote:

> Hi Friends,
> 
> 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). 
> 
> 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.
> 
> Regards,
> Sanjeev 
> 
> [Non-text portions of this message have been removed]
> 
> 



[Non-text portions of this message have been removed]



------------------------------------

To unsubscribe, send a blank message to 
<mailto:c-prog-unsubscr...@yahoogroups.com>.Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/c-prog/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/c-prog/join
    (Yahoo! ID required)

<*> To change settings via email:
    c-prog-dig...@yahoogroups.com 
    c-prog-fullfeatu...@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
    c-prog-unsubscr...@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Reply via email to