Reputation: 382
I have a script in a file .bat that I need to run in Ubuntu's terminal. I run it ($./execute.bat) and I get the following error in a line:
"Could not open input file: prepare.php"
In the line inside the file, there is the command:
php prepare.php
The file prepare.php is in the same directory of execute.bat and has all permissions (chmod 777)
Why I get this error and how can I solve it?
Upvotes: 2
Views: 2651
Reputation: 9700
You are getting the error because the bat file cannot open prepare.php
due to permissions.
Set the right permissions on prepare.php
and it should be fine.
Upvotes: 1