I have a shell script (Linux) whith a php cli which always failing with ControlM.
echo "The user executing is `whoami`"
echo "Path is `pwd`"
echo "Running php program"
echo "Odate is $ODATE"
/opt/php/php7_installed/bin/php -c /opt/php/php7_installed/lib/php.ini /servicios/vertriebsmanager/export/erfolgsreporting_cr_sb.php
if [[ $ret -ne 0 ]];
echo "ERROR IN PHP"
When I execute the shell script manually it works. In ControlM the script fails.
The php scripts works with a db class (Oracle via ODBC).
include ($HAUPTLINK_VM.'xx_klassen/db_class_'.$db.'.inc'); --> here it fails via controlm.
Has anybody an idea why?