blob: 8df567b2255f3129dfe38b1fb7abe515a7977c7d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
--- scripts/diskfree.pl.orig Wed Jan 4 06:08:30 2006
+++ scripts/diskfree.pl Fri Jan 6 00:16:58 2006
@@ -1,5 +1,5 @@
#!/usr/bin/perl
-open(PROCESS,"df --block-size=1024 -P $ARGV[0] | grep -v Filesystem |");
+open(PROCESS,"df -k $ARGV[0] | grep -v Filesystem |");
foreach (<PROCESS>) {
if ($_ =~ /($ARGV[0])(.* )(.*[0-9])(.* )(.*[0-9])(.* )(.*[0-9])(.* )(.*[0-9])%(.* )/) {
print "megabytes:$7 percent:$9";
|