popen() can't tell if cmd fails

Conor P. Cahill cpcahil at virtech.uucp
Mon Jul 2 22:29:51 AEST 1990


In article <855 at cmsfl> nigel at cmsfl@labtam.oz (Nigel Harwood) writes:
>I am working on a program where I would like to use
>popen() but can see no way of detecting when the command exits
>with a bad status.

RTFM: pclose() returns the exit status of the command.

-- 
Conor P. Cahill            (703)430-9247        Virtual Technologies, Inc.,
uunet!virtech!cpcahil                           46030 Manekin Plaza, Suite 160
                                                Sterling, VA 22170 



More information about the Comp.lang.c mailing list