Path: utzoo!attcan!uunet!virtech!cpcahil From: cpcahil@virtech.uucp (Conor P. Cahill) Newsgroups: comp.lang.c Subject: Re: popen() can't tell if cmd fails Keywords: popen() Message-ID: <1990Jul02.122951.7732@virtech.uucp> Date: 2 Jul 90 12:29:51 GMT References: <855@cmsfl> Reply-To: cpcahil@virtech.UUCP (Conor P. Cahill) Organization: Virtual Technologies Inc., Sterling VA Lines: 11 In article <855@cmsfl> nigel@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