Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

php, fun!

Name: Anonymous 2009-05-16 17:44

Hello there. I'm using popen to run some programs that output a text blob after several seconds. I'm using fgets to read from the processes stdout, but when I do that fgets just hangs until the process finally does output the text. What I want is to check to the stdout, and if nothing was output then to move on.

tl;dr I want to check if the process is done, if it isn't then I want to have the program do something else and come back to it later. Help.

Name: Anonymous 2009-05-16 20:51

>>14
>>15
>>16
>>17
XD epic combo

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List