Problems with popen on RS/6000

dcm dcm at toysrus.uucp
Fri Aug 17 01:15:27 AEST 1990


In article <1990Aug15.203239.8832 at eplrx7.uucp> mroz at eplrx7.uucp (Peter Mroz) writes:
>I'm having a problem with popen sending back buffered output.  I am in the
>process of writing a program to display vmstat output using curses.  However,
>when I issue the command
>
>	vin = popen("vmstat 2","r");
>
>I can't read anything with fgets until some internal buffer is filled.  I
>tried running the same program on a Sun and it works just fine.  Any suggestions
>would be appreciated.


	
	Actually, vmstat is not fflush'ing after each iteration.

	"To be fixed in a future update".  (luckily enough, I'm working
	on another vmstat bug right now, so I'll just sneak the fflush
	back in where Berkeley had it originally)

	Thanks...


		Craig Miller, AIXV3 Change Team, Austin
--------
	Craig Miller, contractor @ IBM AWD, Austin
	UUCP: ..!uunet!cs.utexas.edu!ibmaus!auschs!toysrus.austin.ibm.com!dcm

	"Just because it works doesn't means it's right, stupid!"
	"You should never install code you do not understand."
	"If you knowningly install broken code, you should be shot.  Period."
	"Programmers have to be accountable for their code."



More information about the Comp.unix.aix mailing list