popen/system problems?

Brian Glendenning bglenden at mandrill.cv.nrao.edu
Fri Sep 7 01:05:38 AEST 1990


We have a large system of mixed fortran/C. To inquire about free disk
space we essentially have a scheme like:

	pp = popen("df | grep some_fs", "r");
	...
	fgets(line, 80, pp);
	...
	parse line for info

This behaves oddly under the fortran/C system (e.g. the fgets hangs),
but simple C only programs seem to show the right behaviour. Is there
some known problem I should be aware of (RS6000/530, AIX3.1)?
Alternate suggestions?  (e.g.  how do I query the fs's directly)?
Thanks!

Incidentally, despite what the info pages say, df /some/file/name
doesn't do what it does under bsd os's.

Brian
--
       Brian Glendenning - National Radio Astronomy Observatory
bglenden at nrao.edu          bglenden at nrao.bitnet          (804) 296-0286



More information about the Comp.unix.aix mailing list