Skip to content

Instantly share code, notes, and snippets.

View earnhardt3rd's full-sized avatar

frank.earnhardt earnhardt3rd

View GitHub Profile
require 'getopts.pl';
Getopts('m:d:t');
my $MODE = uc($opt_m) || "";
my $DEBUG = $opt_d || 0;
if (defined $opt_t) { my %TEST = &_zDEL_USER_BIN();}
1;
sub _zDEL_USER_BIN {
my $os_user = shift || $USERNAME;
my $userbin = $os_user;
print " _USER_BIN($os_user)\n" if $DEBUG > 1;
require 'getopts.pl';
Getopts('m:d:t');
my $MODE = uc($opt_m) || "";
my $DEBUG = $opt_d || 0;
if (defined $opt_t) { my %TEST = &_zDEL_USERS_OLD_SEE_FH_USERS();}
1;
sub _zDEL_USERS_OLD_SEE_FH_USERS {
my $input = shift || "";
print " _USERS($input)\n" if $DEBUG > 0;
if (uc($input) eq "NOW") {$input = &getDate() . "-" . &getTime();}
require 'getopts.pl';
Getopts('m:d:t');
my $MODE = uc($opt_m) || "";
my $DEBUG = $opt_d || 0;
if (defined $opt_t) { my %TEST = &_zDEL_USERS_OLD();}
1;
sub _zDEL_USERS_OLD {
my $uAction = shift || "";
if ($uAction ne "") {
goto UAUTO;
require 'getopts.pl';
Getopts('m:d:t');
my $MODE = uc($opt_m) || "";
my $DEBUG = $opt_d || 0;
if (defined $opt_t) { my %TEST = &_WSP_MODS();}
1;
sub _WSP_MODS {
my %RET_WSP;
my $wspMods = $ROOTS{"NXROOT"} . $SLASH . "site" . $SLASH . "mods" . $SLASH . "majic" . $SLASH . "wsp.mods";
if (! -f $wspMods ) {
require 'getopts.pl';
Getopts('m:d:t');
my $MODE = uc($opt_m) || "";
my $DEBUG = $opt_d || 0;
if (defined $opt_t) { my %TEST = &_WIN_DRIVES();}
1;
sub _WIN_DRIVES {
my $cmd1 = "reg query hklm\\system\\mounteddevices";
my $cmdX1 = `$cmd1 2>&1`;
my @LIST = split('\n',$cmdX1);
require 'getopts.pl';
Getopts('m:d:t');
my $MODE = uc($opt_m) || "";
my $DEBUG = $opt_d || 0;
if (defined $opt_t) { my %TEST = &_WARNING();}
1;
sub _WARNING {
my $warnMsg = shift || "";
if ($warnMsg eq "") {return;}
if (defined($WARN_FILE)) {
require 'getopts.pl';
Getopts('m:d:t');
my $MODE = uc($opt_m) || "";
my $DEBUG = $opt_d || 0;
if (defined $opt_t) { my %TEST = &_USER_DATA();}
1;
sub _USER_DATA {
my $data_type = shift || "";
print " DEBUG:_USER_DATA($data_type)\n" if $DEBUG > 1;
my $rtn_data;
require 'getopts.pl';
Getopts('m:d:t');
my $MODE = uc($opt_m) || "";
my $DEBUG = $opt_d || 0;
if (defined $opt_t) { my %TEST = &_UNPAK();}
1;
sub _UNPAK {
my $INPUT = shift || "";
my $tTag="";
my $tFile="";
require 'getopts.pl';
Getopts('m:d:t');
my $MODE = uc($opt_m) || "";
my $DEBUG = $opt_d || 0;
if (defined $opt_t) { my %TEST = &_TRACER();}
1;
sub _TRACER {
my $tracer_flag = 0;
my $th_file = $SYS . $SLASH . ".pdm_tracer";
my $tu_file = $SYS . $SLASH . ".pdm_tracer_user";
require 'getopts.pl';
Getopts('m:d:t');
my $MODE = uc($opt_m) || "";
my $DEBUG = $opt_d || 0;
if (defined $opt_t) { my %TEST = &_TOOL_ACCESS();}
1;
sub _TOOL_ACCESS {
my $in_tool = $_[0];
my $tool_name = $in_tool;
if (! exists($TOOLS{$tool_name})) {