X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Farchival%2Fshared_snarfer.pl;h=2d778b4aac7d84b6ff6e24583475b13f99e5f9c0;hb=e7fb349dd75afd715b425408d1088ef15e948b95;hp=9edc41427297fde85a2349f197ca938c2d1e420a;hpb=e471e89ab16d0224ad0abf3f1c1bef39481aa254;p=feisty_meow.git diff --git a/scripts/archival/shared_snarfer.pl b/scripts/archival/shared_snarfer.pl index 9edc4142..2d778b4a 100644 --- a/scripts/archival/shared_snarfer.pl +++ b/scripts/archival/shared_snarfer.pl @@ -21,12 +21,12 @@ ############################################################################### require "filename_helper.pl"; -require "hostname.pl"; -require "importenv.pl"; require "inc_num.pl"; use Cwd; +use Sys::Hostname; use File::Which; +use Env qw(FEISTY_MEOW_SCRIPTS TMP); $null_log = "/dev/null"; @@ -74,7 +74,8 @@ sub initialize_snarfer { # returns the current hostname, but without any domain included. sub short_hostname { - local($temphost) = &hostname(); + local($temphost) = hostname(); +#&hostname(); $temphost =~ s/([^.]*)\..*/\1/; return &lower($temphost); } @@ -84,12 +85,6 @@ sub short_hostname { sub snarf_prefix { local($base) = @_; $date_tool = "date"; - -# if ($OS =~ /win/i) { -# # just hope that this is running under msys in our build bin. -# $date_tool = "$PRODUCTION_DIR/msys/bin/date"; -# } - local($date_part) = `$date_tool +%Y-%m-%d-%H%M`; while ($date_part =~ /[\r\n]$/) { chop $date_part; } local($host) = &short_hostname();