added a date stamp in safedel for the output file names, annotated where i got it...
[feisty_meow.git] / scripts / archival / shared_snarfer.pl
index 4747d07e70b9dd2b5de402d70274a2fb2b44777a..dbf268d61d7ad4e421946b8f3212ccbd12832cc1 100644 (file)
@@ -85,9 +85,12 @@ sub short_hostname {
 # a timestamp and hostname.
 sub snarf_prefix {
   local($base) = @_;
+
+#hmmm: extract this shared code to new function (also in safedel)
   $date_tool = "date";
   local($date_part) = `$date_tool +%Y-%m-%d-%H%M`;
   while ($date_part =~ /[\r\n]$/) { chop $date_part; }
+
   local($host) = &short_hostname();
   while ($host =~ /[\r\n]$/) { chop $host; }
   $base = $base . "_" . $host . "_" . $date_part;