From: Don Armstrong Date: Mon, 26 Jun 2017 15:18:56 +0000 (-0700) Subject: silence "which sbatch" checking X-Git-Url: https://git.donarmstrong.com/?p=uiuc_igb_scripts.git;a=commitdiff_plain;h=1a8b54ebd92ab8f698b327a4a78764ef37916f0a silence "which sbatch" checking --- diff --git a/dqsub b/dqsub index ed8b629..0a04f2d 100755 --- a/dqsub +++ b/dqsub @@ -158,7 +158,7 @@ if ($options{interactive} and @ARGV) { } if (not defined $options{batch}) { - qx/which sbatch/; + qx{which sbatch >/dev/null 2>&1}; if ($? == 0) { $options{batch} = 'slurm' } else {