someones n00b
Joined: 10 Jan 2004 Posts: 14 Location: Basel, Schweiz
|
Posted: Thu Nov 25, 2004 12:08 pm Post subject: vixie cron mailt nicht |
|
|
Hallo,
ich möchte mir ein cronjob (vixie cron) einrichten, welcher mich über den Status meiner box informiert. Leider aber sendet vixie cron keine E-Mails über qmail, bzw sendet gar keine E-Mails. Qmail läuft aber ansonsten einwandfrei.
Die meisten Leute im Forum haben ja das gegenteilige problem, wieso der cron aber keine E-Mails sendet konnte ich nicht herausfinden.
Soviel ich weiss müsste vixie doch alles standartmässig mailen was output
generiert.
Kann mir jemand sagen, an was das liegen könnte?
Der nachstehende cronjob ist nur für Testzwecke
Besten Dank
someones
Meine crontab: (eigentlich im original Zustand)
Code: | # Global variables
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/
# check scripts in cron.hourly, cron.daily, cron.weekly and cron.monthly
0 * * * * root rm -f /var/spool/cron/lastrun/cron.hourly
1 3 * * * root rm -f /var/spool/cron/lastrun/cron.daily
15 4 * * 6 root rm -f /var/spool/cron/lastrun/cron.weekly
30 5 1 * * root rm -f /var/spool/cron/lastrun/cron.monthly
*/10 * * * * root test -x /usr/sbin/run-crons && /usr/sbin/run-crons
|
Mein cronjob als user:
Code: | MAILTO=michel
#HOME=/home/michel/
# minute (0-59)
# | hour (0-23)
# | | day of the month (1-31)
# | | | month of the year (1-12)
# | | | | day of the week (0-6)
# | | | | | commands
# | | | | | |
*\1 * * * * emerge -pu world
*\1 * * * * df -h
*\1 * * * * echo hallo mail
*\1 * * * * lynx -dump http://localhost/cron.php
*\1 * * * * php /var/www/localhost/htdocs/cron.php
|
Auszug aus dem /var/log/crond/current
Code: | Nov 25 12:56:00 [CRON] (michel) CMD (php /var/www/localhost/htdocs/cron.php)_
Nov 25 12:56:00 [CRON] (michel) CMD (lynx -dump http://localhost/cron.php)_
Nov 25 12:56:00 [CRON] (michel) CMD (echo hallo mail)_
Nov 25 12:56:00 [CRON] (michel) CMD (df -h)_
Nov 25 12:56:00 [CRON] (michel) CMD (emerge -pu world)_
|
|
|