St. Catharine has asked for the wisdom of the Perl Monks concerning the following question:
given the name of a mount point which is contained in $mp, what is the perl equivalent of df -kl.
I need to know the total capacity of several mount points whose names follow standard formats.
I tried system(df -k $mp), but get back the two line junk. I want a command which give the $mp, returns come way of eventually getting the mount point capacity...
much thanks,
perlifying my korn shell,
St. C.
Edited by Chady -- fixed df -kl typo, and added formatting while I'm at it.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Calculating Mount Point Capacity
by kvale (Monsignor) on Apr 20, 2004 at 02:55 UTC | |
|
Re: Calculating Mount Point Capacity
by emilford (Friar) on Apr 20, 2004 at 02:57 UTC | |
|
Re: Calculating Mount Point Capacity
by Errto (Vicar) on Apr 20, 2004 at 03:04 UTC | |
|
Re: Calculating Mount Point Capacity
by TilRMan (Friar) on Apr 20, 2004 at 03:50 UTC |