Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
vixie cron mailt nicht
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
someones
n00b
n00b


Joined: 10 Jan 2004
Posts: 14
Location: Basel, Schweiz

PostPosted: Thu Nov 25, 2004 12:08 pm    Post subject: vixie cron mailt nicht Reply with quote

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 :lol:

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)_
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum