Vorheriges Thema anzeigen :: Nächstes Thema anzeigen |
Autor |
Nachricht |
Dennis Junior-Chef

Anmeldedatum: 21.06.2003 Beiträge: 2344 Wohnort: Schömberg (zw. Stuttgart u . Karlsruhe)
|
Verfasst am: Mi Mai 25, 2005 13:59 Titel: Cron soll keine Mails mehr verschicken |
|
|
Hallo,
mein Problem ist, dass cron tausende Mails am Tag in den root-Account schickt. Jemand ne Idee wie ich das abdrehe ? Die Cronjobs:
Zitat: | # mapping.pl for jira-mappings every 2 minutes
*/2 * * * * $HOME/bin/cgi-bin/mapping.pl >> /dev/null
# syncstate.pl for jira/otrs states every 2 minutes
*/2 * * * * $HOME/bin/cgi-bin/syncstate.pl >> /dev/null |
Die Mails:
Zitat: | From otrs@www2.ems-ag.de Wed May 25 14:56:01 2005
X-Original-To: root@localhost
Delivered-To: root@localhost.ems-ag.de
From: root@www2.ems-ag.de (Cron Daemon)
To: root@localhost.ems-ag.de
Subject: Cron <otrs@www2> $HOME/bin/cgi-bin/syncstate.pl >> /dev/null
X-Cron-Env: <MAILTO=root@localhost>
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/opt/otrs/>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=otrs>
X-Cron-Env: <USER=otrs>
Date: Wed, 25 May 2005 14:56:01 +0200 (CEST)
Use of uninitialized value in numeric eq (==) at /opt/otrs//bin/cgi-bin/syncstate.pl line 67.
Use of uninitialized value in numeric eq (==) at /opt/otrs//bin/cgi-bin/syncstate.pl line 67.
|
|
|
Nach oben |
|
 |
Boum

Anmeldedatum: 29.07.2003 Beiträge: 1929 Wohnort: Karlsruhe
|
Verfasst am: Mi Mai 25, 2005 14:03 Titel: Re: Cron soll keine Mails mehr verschicken |
|
|
Dennis hat Folgendes geschrieben: | mein Problem ist, dass cron tausende Mails am Tag in den root-Account schickt. Jemand ne Idee wie ich das abdrehe ?
Zitat: | [...]
Use of uninitialized value in numeric eq (==) at /opt/otrs//bin/cgi-bin/syncstate.pl line 67.
Use of uninitialized value in numeric eq (==) at /opt/otrs//bin/cgi-bin/syncstate.pl line 67.
|
|
Hm... den Fehler in dem Perl-Skript beheben? *duck* Also schön, und hier noch die "weniger konstruktive" Lösung:
Zitat: |
Die Cronjobs:
Zitat: | # mapping.pl for jira-mappings every 2 minutes
*/2 * * * * $HOME/bin/cgi-bin/mapping.pl >> /dev/null
# syncstate.pl for jira/otrs states every 2 minutes
*/2 * * * * $HOME/bin/cgi-bin/syncstate.pl >> /dev/null |
|
Ersetze jeweils
durch
_________________ Planung ist das Ersetzen des Zufalls durch Irrtum. |
|
Nach oben |
|
 |
Dennis Junior-Chef

Anmeldedatum: 21.06.2003 Beiträge: 2344 Wohnort: Schömberg (zw. Stuttgart u . Karlsruhe)
|
Verfasst am: Mi Mai 25, 2005 14:30 Titel: |
|
|
Danke
Sind btw nicht meine Perlscripte deshalb lasse ich da die Finger weg. |
|
Nach oben |
|
 |
dl7awl

Anmeldedatum: 22.06.2003 Beiträge: 536 Wohnort: Berlin/Nackel
|
Verfasst am: Mi Mai 25, 2005 16:57 Titel: |
|
|
Andere Möglichkeit:
der crontab-Zeile ein Minuszeichen voranstellen, z.B.:
Code: | -*/1 * * * * /root/confixx/confixx_counterscript.pl |
|
|
Nach oben |
|
 |
Boum

Anmeldedatum: 29.07.2003 Beiträge: 1929 Wohnort: Karlsruhe
|
Verfasst am: Mi Mai 25, 2005 17:21 Titel: |
|
|
dl7awl hat Folgendes geschrieben: | Andere Möglichkeit:
der crontab-Zeile ein Minuszeichen voranstellen |
Ist das portabel? In meiner man-page findet sich dazu null, nothing, rien, nada, niente, nix... Muss ja aber nix heissen.  _________________ Planung ist das Ersetzen des Zufalls durch Irrtum. |
|
Nach oben |
|
 |
dl7awl

Anmeldedatum: 22.06.2003 Beiträge: 536 Wohnort: Berlin/Nackel
|
Verfasst am: Mi Mai 25, 2005 21:04 Titel: |
|
|
Sorry, Irrtum meinerseits, ich habe da was verwechselt. In meinem Beispielfall sollten mit dem Minuszeichen nicht Fehlermails, sondern syslog-Einträge unterdrückt werden. Das allerdings funktioniert wirklich bei mir seit über einem Jahr. Auf die Schnelle fand ich dazu folgenden Beleg: http://www.linuxfibel.de/time.htm
Wo ich es damals herhatte, weiß ich nicht mehr.
Gruß, Manfred |
|
Nach oben |
|
 |
|