Logeintrag confixx_counterscript.pl
Logeintrag confixx_counterscript.pl
wo muss ich das einstellen, dass das confixx counterscript nicht bei jedem ausführen einen logeintrag in die /var/log/messages schreibt???
danke
danke
-
ichschonwieder
- Posts: 28
- Joined: 2003-03-05 16:41
- Location: Bretten
Re: Logeintrag confixx_counterscript.pl
Setz ein Minus
vor den Eintrag in der cron
BTW: Mit der Boardsuche hättest du nicht fragen brauchen ;)
Code: Select all
-
BTW: Mit der Boardsuche hättest du nicht fragen brauchen ;)
Re: Logeintrag confixx_counterscript.pl
Hi,
wenn die Frage grad mal wieder auftaucht frag ich auch nochmal nach:
Weiss jemand wie man das unter Debian hinbekommt? Ich habe darüber leider nichts gefunden.
so long
static
wenn die Frage grad mal wieder auftaucht frag ich auch nochmal nach:
Weiss jemand wie man das unter Debian hinbekommt? Ich habe darüber leider nichts gefunden.
so long
static
Re: Logeintrag confixx_counterscript.pl
Code: Select all
> /dev/null Fehler --> Eintrag
Code: Select all
> /dev/null 2>&1Re: Logeintrag confixx_counterscript.pl
Hi,
@ICE, das war natürlich das Erste was ich ausprobiert habe, leider ohne Erfolg:
so long
static
@ICE, das war natürlich das Erste was ich ausprobiert habe, leider ohne Erfolg:
Code: Select all
meriadoc:~# tail /var/log/syslog -n 1
Sep 4 16:36:01 meriadoc /USR/SBIN/CRON[12889]: (root) CMD (/root/testscript.sh > /dev/null 2>&1)
static
Re: Logeintrag confixx_counterscript.pl
Dann hast Du das File "confixx" in /etc/cron.d/. Ich habe den Eintrag im crontab.
Re: Logeintrag confixx_counterscript.pl
Hi,
das hat ja eigentlich nichts mit Confixx zu tun... Geht allgemein darum wie ich einen Cronjob aus den Logs rauskriege.
Ausserdem steht der in der Crontab und nicht in cron.d:
Ergibt:
Jemand ne Idee?
so long
static
das hat ja eigentlich nichts mit Confixx zu tun... Geht allgemein darum wie ich einen Cronjob aus den Logs rauskriege.
Ausserdem steht der in der Crontab und nicht in cron.d:
Code: Select all
meriadoc:~# cat /etc/crontab
# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file.
# This file also has a username field, that none of the other crontabs do.
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# m h dom mon dow user command
25 6 * * * root test -e /usr/sbin/anacron || run-parts --report /etc/cron.daily
47 6 * * 7 root test -e /usr/sbin/anacron || run-parts --report /etc/cron.weekly
52 6 1 * * root test -e /usr/sbin/anacron || run-parts --report /etc/cron.monthly
#
*/1 * * * * root /root/testscript.sh > /dev/null 2>&1
Code: Select all
meriadoc:~# tail /var/log/syslog -n 1
Sep 4 16:36:01 meriadoc /USR/SBIN/CRON[12889]: (root) CMD (/root/testscript.sh > /dev/null 2>&1)
so long
static
Re: Logeintrag confixx_counterscript.pl
Ich weiß nicht wie das bei Debian ist, aber bei SuSE bekommt man mit man 5 crontab unter EXTENSIONS den Hinweis:
Die pipes regeln NICHT den syslog!If the uid of the owner is 0, he can put a "-" as first character of a crontab entry. Then cron won't write a syslog message about this command.
Re: Logeintrag confixx_counterscript.pl
Bei der Suse ist das auch so. Und funktioniert auch. Gruß, G.