Re: popen: how to test for end of program
- From: CBFalconer <cbfalconer@xxxxxxxxx>
- Date: Thu, 12 May 2005 15:39:38 GMT
bastiaannaber@xxxxxxxxx wrote:
>
> I am trying to write a program which uses popen but I have a problem. I
> want to detect if the program I call with popen has ended. For example:
>
> #include <stdio.h>
> #include <sys/types.h>
> #include <unistd.h>
>
.... snip ...
>
> Does anyone know how to test if the program has ended ?
Since nothing you mention, apart from <stdio.h>, exists in the
portable standard C language, the answer is NO, nobody here knows.
However, if you were to move to a newsgroup where those things are
topical, possibly with unix in its name, the answer might be
different.
--
Some informative links:
news:news.announce.newusers
http://www.geocities.com/nnqweb/
http://www.catb.org/~esr/faqs/smart-questions.html
http://www.caliburn.nl/topposting.html
http://www.netmeister.org/news/learn2quote.html
.
- References:
- popen: how to test for end of program
- From: bastiaannaber
- popen: how to test for end of program
- Prev by Date: Re: manipulation and memory allocation
- Next by Date: Re: Clearing an array
- Previous by thread: Re: popen: how to test for end of program
- Next by thread: Re: popen: how to test for end of program
- Index(es):
Relevant Pages
|