Path: utzoo!attcan!uunet!know!zaphod.mps.ohio-state.edu!wuarchive!emory!mephisto!mcnc!uvaarpa!murdoch!murdoch.acc.virginia.edu!bglenden From: bglenden@mandrill.cv.nrao.edu (Brian Glendenning) Newsgroups: comp.unix.aix Subject: popen/system problems? Message-ID: Date: 6 Sep 90 15:05:38 GMT Sender: news@murdoch.acc.Virginia.EDU Organization: National Radio Astronomy Observatory Lines: 23 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@nrao.edu bglenden@nrao.bitnet (804) 296-0286