Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!wuarchive!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!nic.MR.NET!nic.stolaf.edu!news From: hannum@vivaldi.psu.edu (Charles Hannum) Newsgroups: comp.lang.c Subject: Re: popen() can't tell if cmd fails Message-ID: <1990Jul6.070030.17608@acc.stolaf.edu> Date: 6 Jul 90 07:00:30 GMT References: <855@cmsfl> Sender: news@acc.stolaf.edu Organization: The Pennsylvania State University Public NeXT Laboratory Lines: 18 In-Reply-To: nigel@cmsfl@labtam.oz's message of 1 Jul 90 06:44:21 GMT Quoting (without permission) from the popen/pclose man page on this system: A stream opened by popen should be closed by pclose, which waits for the associated process to terminate and returns the exit status of the command. The reader can extrapolate the rest. (I'm assuming you're using a real Unix popen() and pclose() ... ? If you're using a cheap MS-LOSS half-ass-look-alike, then this probably won't work. In fact, I'm almost positive it won't in that case.) -- Virtually, Charles Martin Hannum "Those who say a thing cannot be done should Please send mail to: under no circumstances stand in the way of hannum@schubert.psu.edu he who is doing it." - a misquote