use Cwd;
use File::Which;
-#hmmm: maybe move this to a utility script file.
$null_log = "/dev/null";
-#hmmm: move especially this check to a script file, and recast anything
-# referring to Windows_NT to it.
-if ( ("$OS" =~ /[wW][iI][nN]/) || ("$OS" =~ /[Oo][Ss]2/)
- || ("$OS" =~ /[Dd][Oo][Ss]/) ) {
- $null_log = "nul"
-}
-#print "nul log=$null_log \n";
$TMP =~ s/\\/\//g; # fix the temp variable for ms-winders.
die "Too few arguments to command.";
}
+$DEV_NULL = "&> /dev/null";
if ($OS eq "UNIX") {
$FIND_ENDING = "';'";
- $DEV_NULL = "> /dev/null";
$zip = "zip -y ";
} elsif ( ($OS eq "DOS") || ($OS eq "Windows_95")
|| ($OS eq "Windows_98") || ($OS eq "Windows_NT") ) {
$FIND_ENDING = "';'";
- $DEV_NULL = "> nul";
$zip = "zip ";
} else {
die "The Operating System variable (OS) is not set.\n";
require "zap_the_dir.pl";
+$DEV_NULL = "&>/dev/null"
#hmmm: move this to a useful location in a perl library.
if ($OS eq "UNIX") {
$FIND_ENDING = "';'";
- $DEV_NULL = "> /dev/null"
} elsif ( ($OS eq "DOS") || ($OS eq "Windows_95")
|| ($OS eq "Windows_98") || ($OS eq "Windows_NT") ) {
$FIND_ENDING = "';'";
- $DEV_NULL = "> nul"
} else {
die "The Operating System variable (OS) is not set.\n";
}