On Fri, Jun 01, 2001 at 01:16:45PM -0400, [EMAIL PROTECTED] wrote:
> Please help.
>
> foreach $_ (`df`){
> ($fs, $kb, $used, $avail, $cap, $mount) = split (" ",/(\S+\\/n));
> print $fs if /dsk/;
> }
This doesn't answer your asked question, but you may want to consider using
one of the various Perl modules for retriving filesystem information. The
ones I know of are Filesys::DiskFree, Filesys::DiskSpace, and
Filesys::statvfs. They can be obtained from CPAN.
Michael
--
Administrator www.shoebox.net
Programmer, System Administrator www.gallanttech.com
--