| Last published: Wed Oct 8 10:18:30 MDT 2003 | Doc for 1.1.4.1 |
|
Programmer's Reference
COE_API:COE
COE_API:OS_Linux
COE_API:OS_Windows
COE_API:UAM
COE_API:UserMgmt
COE_CVS
COE_ManPages:COE
COE_ManPages:UserMgmt
COE:SegmentationGuide
|
#!/h/COE/Comp/PERL5/bin/perl -T -I /h/COE/lib -w
use strict;
use Coe;
my $VERSION="1.1.4.1";
if (@ARGV != 2) {
print "Usage: UAM_EditUser.pl {username} {scope}\n";
exit 1;
}
my $mode="--edit";
my $user=cleanString(shift,1);
my $scope=cleanString(shift,1);
if ("$scope" eq "l" || "$scope" eq "local") {
$scope="local";
} elsif ("$scope" eq "g" || "$scope" eq "global") {
$scope="global";
} else {
print "Usage: UAM_EditUser.pl --edit {username} {scope}\n";
exit 1;
}
coeRun("COE_COMP/JAVA2/bin/java",
"-Dcfgfile=COE_HOME/lib/coeenv.txt",
"-classpath",
"COE_COMP/UAM/lib/UAM.jar:COE_HOME/lib/opencoe.jar",
"org.opencoe.coe.uam.UAM_EditUser",
"$mode", "$user", "$scope");
|
| © 2003, Federal Linux Systems |