On Tue, Jul 04, 2006 at 05:08:19PM -0300, Jakson Aquino wrote:

> $ gcc testpopen.c
> $ ./a.out
> Before: F = (nil)
> After:  F = 0x501010
> sh: nothing: command not found

This means that popen() _did_ succeed (it has invoked the shell). The
fact that the shell could not interpret the command and therefore exited
with an error is not popen()'s business anymore.

Gabor

-- 
     ---------------------------------------------------------
     MTA SZTAKI Computer and Automation Research Institute
                Hungarian Academy of Sciences
     ---------------------------------------------------------


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to