Displaying 1 result from an estimated 1 matches for "typearg".
Did you mean:
type_g
2006 Apr 04
0
get quota command - Example
...#print "t $test_dir\n";
last if ( $mount_point{$test_dir} ne "" );
}
$directory = $mount_point{$test_dir};
} until ( ($directory =~ /^\/dev\//)||($directory=~/^\S+:/) );
# Build the quota command necessary
#
if ( $type == 4 ) {
$typearg = "-g";
} else {
$typearg = "";
}
$cmd = "/usr/bin/quota $typearg $id";
# Open the output from quota, scan for the mountpoint device
# and then regurgitate the line with some small changes so that
# samba can understand it.
#
open(QUOTA,"$cmd|");
wh...