I'm setting up a daily routine via a bash script sitting in cron.daily, launched by a cronjob.
All is fine except the very last step. I'm not sure how to write it down, so it might just be the syntax? Or it may be that the process exits after the bash backup.sh call ? I'm not sure how i can "chain" scripts in bash.
Here is the end of the bash script.
# 3. Run backup rotate
cd $BACKUP_DIR
bash backup.sh
# 4. run SAP Export
/usr/bin/php -q /var/www/vhost/domain.com/export.cron.php
Please check file execution permissions for /var/www/vhost/domain.com/export.cron.php
you can't run the php script with out file execution permissions.
Try below commands (give full permissions)
$ chmod 777 /var/www/vhost/domain.com/export.cron.php
$ /usr/bin/php -q /var/www/vhost/domain.com/export.cron.php