title: Bash Operator error: No such file or directory in airflow
body: <p>I am a newbie to Airflow and struggling with BashOperator. I want to access a shell script using bash operatory in my dag.py. </p>
  
  <p>I checked:
  <a href="https://stackoverflow.com/questions/40146934/how-to-run-bash-script-file-in-airflow">How to run bash script file in Airflow</a>
  and
  <a href="https://stackoverflow.com/questions/42259298/bashoperator-doent-run-bash-file-apache-airflow/42571965">BashOperator doen&#39;t run bash file apache airflow</a></p>
  
  <p>on how to access shell script through bash operator.</p>
  
  <p>This is what I did:</p>
  
  <pre><code> cmd = "./myfirstdag/dag/lib/script.sh "
  
          t_1 = BashOperator(
              task_id='start',
              bash_command=cmd
          )
  </code></pre>
  
  <p>On running my recipe and checking in airflow I got the below error:</p>
  
  <pre><code>[2018-11-01 10:44:05,078] {bash_operator.py:77} INFO - /tmp/airflowtmp7VmPci/startUDmFWW: line 1: ./myfirstdag/dag/lib/script.sh: No such file or directory
  [2018-11-01 10:44:05,082] {bash_operator.py:80} INFO - Command exited with return code 127
  [2018-11-01 10:44:05,083] {models.py:1361} ERROR - Bash command failed
  </code></pre>
  
  <p>Not sure why this is happening. Any help would be appreciated.</p>
  
  <p>Thanks !</p>
  
  <p>EDIT NOTE: I assume that it's searching in some airflow tmp location rather than the path I provided. But how do I make it search for the right path.</p>