]> git.donarmstrong.com Git - uiuc_igb_scripts.git/commitdiff
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 ed8b62901173d534c64c7fc963095e7f2be65cc8..0a04f2d2396c208b0ebdd613b948b8f05e2c07d4 100755 (executable)
--- a/dqsub
+++ b/dqsub
@@ -158,7 +158,7 @@ if ($options{interactive} and @ARGV) {
 }
 
 if (not defined $options{batch}) {
 }
 
 if (not defined $options{batch}) {
-    qx/which sbatch/;
+    qx{which sbatch >/dev/null 2>&1};
     if ($? == 0) {
         $options{batch} = 'slurm'
     } else {
     if ($? == 0) {
         $options{batch} = 'slurm'
     } else {