silence "which sbatch" checking
authorDon Armstrong <don@donarmstrong.com>
Mon, 26 Jun 2017 15:18:56 +0000 (08:18 -0700)
committerDon Armstrong <don@donarmstrong.com>
Mon, 26 Jun 2017 15:18:56 +0000 (08:18 -0700)
dqsub

diff --git a/dqsub b/dqsub
index ed8b629..0a04f2d 100755 (executable)
--- 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 {