title: Crontab bash script: no such file or directory
body: <p>A bash script is executed with crontab. For each run the following error is delivered as email:</p>
  
  <pre><code>/opt/Informatica/pcdev/scripts/startworkflow_trg.sh: line 1: #!/bin/bash: No such file or directory
  </code></pre>
  
  <p>Content in the crontab is as follows:</p>
  
  <pre><code># Check queue and start corresponding processes in test
  * * * * * (. ~/.bash_profile; $HOME/scripts/startworkflow_trg.sh tst)
  </code></pre>
  
  <p>The script works as it should, but the error emails are piling up in the inbox. How can this error be solved?</p>