Op ma 27 aug. 2018 08:57 schreef David C. Rankin < drankinatty@suddenlinkmail.com>:
On 08/26/2018 08:11 AM, Eli Schwartz via arch-general wrote:
Why do you think run-parts "should" execute this file as a cron script? Is there some wonderful shebang in the "avantfax_hourly" file which says "execute this script as a cron executable"?
Yes, of course it does,
$ head -n 2 /srv/http/avantfax/includes/phb.php #!/usr/bin/php56 <?php
and
$ l /usr/bin/php56 -rwxr-xr-x 1 root root 10026472 Aug 9 15:50 /usr/bin/php56
Close, but no cookie. Cron tries to execute /etc/cron.hourly/avantfax_hourly, so the question is whether /etc/cron.hourly/avantfax_hourly starts with a hashbang. The "hourly" directory should contain the executable files you wish to have executed by cron, not crontab files. The crontab files are config files, not the executables themselves. So to execute $prog every hour, you can either: edit the crontab and configure the schedule, program, etc *or* you create a script (or symlink) to call $program and place that in cron's "hourly" directory. It looks like you mixed up both options. Mvg, Guus Snijders