Cron-E-mail abstellen

sense

New Member
Also ich hab ein paar cron-jobs laufen.
Jetzt bekomme ich jedesmal eine e-mail an root wenn
sie erfolgreich gewesen sind. Die laufen alle minuten und das is ne menge!
Weiß wer wie ich diesen service abstelle??(das ich keine e-mails mehr an root bekomme)


mfg sense:cool:
 
devmode:~# man 5 crontab
An active line in a crontab will be either an environment setting or a cron command. An environment setting is of the form,

name = value

where the spaces around the equal-sign (=) are optional, and any subsequent non-leading spaces in value will be part of the value assigned to name.
The value string may be placed in quotes (single or double, but matching) to preserve leading or trailing blanks. The value string is not parsed for
environmental substitutions, thus lines like

PATH = $HOME/bin:$PATH

will not work as you might expect.

Several environment variables are set up automatically by the cron(8) daemon. SHELL is set to /bin/sh, and LOGNAME and HOME are set from the
/etc/passwd line of the crontab's owner. PATH is set to "/usr/bin:/bin". HOME, SHELL, and PATH may be overridden by settings in the crontab; LOGNAME
is the user that the job is running from, and may not be changed.

(Another note: the LOGNAME variable is sometimes called USER on BSD systems... on these systems, USER will be set also.)

In addition to LOGNAME, HOME, and SHELL, cron(8) will look at MAILTO if it has any reason to send mail as a result of running commands in ``this''
crontab. If MAILTO is defined (and non-empty), mail is sent to the user so named. If MAILTO is defined but empty (MAILTO=""), no mail will be sent.
Otherwise mail is sent to the owner of the crontab.
Code:
**** MAILTO=""; /etc/bla/gut.php
Alternativ kannst du auch einfach dafür sorgen das der Cronjob nichts an die Standartausgabe schickt, entweder durch anpassen deines Scripts oder per
Code:
**** /etc/bla/gut.php >/dev/null 2>&1
 
Zwischen dem "-" und der ersten Zahl oder * KEIN leerzeichen dann gehts. Und vergiss die Leerzeichen zwischen den anderen nicht.

Code:
  -*/1 * * * Das Skript
 
auf die gefahr hin das ich mich lächerlich mache:

-*/0,2,4,6,... * * * * script
-/0,2,4,6,... * * * * script
-*/0,2,4,6,... * * *script

mag er alles nicht:

crontab: installing new crontab
"/tmp/crontab.EK0Jt9/crontab":0: bad minute
errors in crontab file, can't install.
Do you want to retry the same edit?

mfg sense
 
Komisch bei mir stehts so drin und geht ;) Naja dann musste du es so machen:
Code:
* * * * /BLUPP/BLUBB >/dev/null 2>&1<
 
Bist mir zuvor gekommen!!!
Habs jetzt auch so probiert und jetzt funkts!!
War ja nicht zum aushalten=)
Danke an beide!:)



mfg sense
 
Back
Top