Following is a bash script run.command that I am trying to use to call a PHP script
#!/bin/bash
#!/usr/bin/php
# Main script
php -f generateTest.php
Why does this not run when I "double click" the bash script ? It runs on calling from the terminal on OS X
I get the error message
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.
I have used chmod +x to make it executable.
generateTest.phpin the same place asrun.command?