php script does not run when called from bash script on MAC OS X
<p>Following is a bash script <code>run.command</code> that I am trying to use to call a PHP script  </p>

<pre><code>  #!/bin/bash
  #!/usr/bin/php
  # Main script 

php -f generateTest.php
</code></pre>

<p>Why does this not run when I "double click" the bash script ? It runs on calling from the <code>terminal</code> on OS X</p>

<p>I get the error message </p>

<pre><code>asehgal-MacBook-Pro:~ asehgal$ /Users/asehgal/projects/configtest/run.command ; exit;
Could not open input file: generateTest.php
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
</code></pre>

<p>I have used <code>chmod +x</code> to make it executable.</p>