Answers.Body: <p>This most likely means your variable <code>$logfile</code> does not exist.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-03-10T08:33:28.227Z
Answers.LastActivityDate: 2021-03-10T08:33:28.227Z
Answers.UserDisplayName: Pallie
Answers.Body: <p>At a guess, the variable <code>$logfile</code> is not properly defined (i.e. it hasn't been defined at all). What is the output of the following command:</p>
  <pre><code>echo &quot;logfile: ${logfile}&quot;
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-08-11T01:44:56.510Z
Answers.LastActivityDate: 2021-08-11T01:44:56.510Z
Answers.UserDisplayName: gringer
Body: <p>I tried running the following command</p>
  <pre><code>/public/home/WHC_BBT/Softwares/bin/bin/denovo_map.pl --samples <span class="math-container">$RawData -O $</span>Popmap -o <span class="math-container">$fullM2n3 -M 2 -n 3 -m 3 -T 15 &amp;&gt; $</span>logfile
  </code></pre>
  <p>This is the error I got</p>
  <blockquote>
  <p>/opt/gridview//pbs/dispatcher/mom_priv/jobs/14923.admin.SC: line 6:
  $logfile: ambiguous redirect</p>
  </blockquote>
  <p>I need help on how to resolve this.</p>
  <p>Thanks.</p>
  
Tags: <snp><assembly><radseq>
Title: Denovo, Stacks: Getting an “ambiguous redirect” error
ThreadText: # Denovo, Stacks: Getting an “ambiguous redirect” error
  
  (Asked by: username_0 on 2021-03-10)
  
  I tried running the following command
  
  ```
  /public/home/WHC_BBT/Softwares/bin/bin/denovo_map.pl --samples $RawData -O $Popmap -o $fullM2n3 -M 2 -n 3 -m 3 -T 15 &> $logfile
  
  ```
  
  This is the error I got
  
  > /opt/gridview//pbs/dispatcher/mom\_priv/jobs/14923.admin.SC: line 6:
  > $logfile: ambiguous redirect
  
  I need help on how to resolve this.
  
  Thanks.
  
  **Tags:** snp, assembly, radseq
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2021-03-10. Score: 1
  
  This most likely means your variable `$logfile` does not exist.
  
  
  ---
  
  ### Answer by username_2 on 2021-08-11. Score: 0
  
  At a guess, the variable `$logfile` is not properly defined (i.e. it hasn't been defined at all). What is the output of the following command:
  
  ```
  echo "logfile: ${logfile}"
  
  ```
  
  
  ---
  
  