Ik wil mijn httpd logfile doorsturen naar mijn root gebruiker. Nu weet ik dat het via crontab kan, nu heb ik die file een beetje aangepast. Nu krijg ik een foutmelding in mijn outlook "/bin/bash: /var/log/httpd: is a directory"
Wat doe ik fout ik geef toch echt de naam van de file op en de naam klopt ook....
Dit is mijn /etc/crontab file
HELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/
# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly
03 4 * * * root run-parts /var/log/httpd/access_log
0-59/5 * * * * root /usr/bin/mrtg /etc/mrtg/mrtg.cfg
Wat doe ik fout ik geef toch echt de naam van de file op en de naam klopt ook....
Dit is mijn /etc/crontab file
HELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/
# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly
03 4 * * * root run-parts /var/log/httpd/access_log
0-59/5 * * * * root /usr/bin/mrtg /etc/mrtg/mrtg.cfg