Finding diskspace status programatically.

Anil Somani somani at parns.nsc.com
Fri Aug 25 03:44:00 AEST 1989


What is the best way to find out current available diskspace 
from within a program? One way is -
             system("df . > /tmp/somename");
             and then parse the file /tmp/somename.
I am sure there is a better way. I am using SunOS 4.0.3.

thanks in advance,
-Anil


-- 
Anil Somani                uucp: {sun|hplabs|amdahl|decwrl}!nsc!parns!somani
National Semiconductor     Domain: somani at parns.nsc.com
2900 Semiconductor Dr.     Corporate Design Automation, M/S D3-677
Santa Clara, CA 95052-8090 Phone: (408)721-4146



More information about the Comp.unix.wizards mailing list