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 = &chkCRON();}
1;
sub chkCRON {
my $CRON_TAG = shift || "";
$CRON_TAG =~ s/\s+$//g; # Remove trailing Spaces
$CRON_TAG =~ s/\s+//g; # Remove Leading Spaces
require 'getopts.pl';
Getopts('m:d:t');
my $MODE = uc($opt_m) || "";
my $DEBUG = $opt_d || 0;
if (defined $opt_t) { my %TEST = &cleanUpProc();}
1;
sub cleanUpProc {
my $pMAIN = shift || "";
print " cleanUpProc($pMAIN)\n" if $DEBUG > 0;
my %WINDOWS_KILL = (
require 'getopts.pl';
Getopts('m:d:t');
my $MODE = uc($opt_m) || "";
my $DEBUG = $opt_d || 0;
if (defined $opt_t) { my %TEST = &D_PDM_TREE();}
1;
sub D_PDM_TREE {
my $cRef = $_[0];
my $dFile = $_[1];
my $ret_msg = "PDM Tree";
require 'getopts.pl';
Getopts('m:d:t');
my $MODE = uc($opt_m) || "";
my $DEBUG = $opt_d || 0;
if (defined $opt_t) { my %TEST = &D_USD_CONTACT_METHODS();}
1;
sub D_USD_CONTACT_METHODS {
my $cRef = $_[0];
my $dFile = $_[1];
my $ret_msg = "Export Contact Methods";
require 'getopts.pl';
Getopts('m:d:t');
my $MODE = uc($opt_m) || "";
my $DEBUG = $opt_d || 0;
if (defined $opt_t) { my %TEST = &D_USD_SA_POLICY();}
1;
sub D_USD_SA_POLICY {
my $cRef = $_[0];
my $dFile = $_[1];
my $ret_msg = "Export Web Service SA Policy";
require 'getopts.pl';
Getopts('m:d:t');
my $MODE = uc($opt_m) || "";
my $DEBUG = $opt_d || 0;
if (defined $opt_t) { my %TEST = &D_USD_SEV_1_NOTIFICATIONS();}
1;
sub D_USD_SEV_1_NOTIFICATIONS {
my $cRef = $_[0];
my $dFile = $_[1];
my $ret_msg = "Export Special Sev1 Notifications";
require 'getopts.pl';
Getopts('m:d:t');
my $MODE = uc($opt_m) || "";
my $DEBUG = $opt_d || 0;
if (defined $opt_t) { my %TEST = &ENV_2_HASH();}
1;
sub ENV_2_HASH {
my $env_tag = shift || "PATH";
my $env_sep = shift || "";
my $env_trn = shift || "";
require 'getopts.pl';
Getopts('m:d:t');
my $MODE = uc($opt_m) || "";
my $DEBUG = $opt_d || 0;
if (defined $opt_t) { my %TEST = &execSQL();}
1;
sub execSQL {
my $SQL = shift || "";
my $DBMS_HOST = shift || $_DBMS{"HOST"} . "\." . $_DBMS{"DOMAIN"};
my $DBMS_USER = shift || $_DBMS{"USER"};
require 'getopts.pl';
Getopts('m:d:t');
my $MODE = uc($opt_m) || "";
my $DEBUG = $opt_d || 0;
if (defined $opt_t) { my %TEST = &File();}
1;
sub File {
###########################################################################
#REMC# File -- return file portion of pathname (either ".../..." or "...\...")
#REMC# arg0 = string to be processed
require 'getopts.pl';
Getopts('m:d:t');
my $MODE = uc($opt_m) || "";
my $DEBUG = $opt_d || 0;
if (defined $opt_t) { my %TEST = &findMatch();}
1;
sub findMatch {
my $token = shift || "";
my $time = shift || "";
my $cron = shift || "";