in my bash script i have:
Quote:
sh /opt/path/to/dir/installproducts.sh
|
the contents of installproducts.sh:
Quote:
#!/bin/sh
php install_products.php all
|
When i run installproducts.sh within my script it says:
Quote:
Could not open input file: install_products.php
|
I can run it on the command line, just not in my bash script.
i'm assuming this is because the the full path of install_products.php isnt specified. The trouble is I can not do that as that script is not mine and is downloaded. I'm just trying to run it from my bash script. Is there a way around this please?