I have a dreamhost web panel and I am setting a cronjob to run my php script, but it shows weird errors, it looks like that it's not executing the file , but it's reading the file. The error is shown below, it comes as email to me
?php: No such file or directory [somesessionvariable]=1573: command not found line 3: syntax error near unexpected token
"include/mydb.php"' line 3:
require_once("include/mydb.php");
This is the subject of the mail:
Cron /usr/local/bin/setlock -n /tmp/cronlock.3782446772.128284 sh -c $'/path /to/file/cases_cron.php'
the permission of the file is 755 and i have copied the path from other perfectly running cronjobs, so no issue to the file path as it's getting the file contents. I am not getting where the problem is