Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Crontab e /var/log/message
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
maurs
Tux's lil' helper
Tux's lil' helper


Joined: 16 Oct 2005
Posts: 85

PostPosted: Mon Mar 19, 2007 6:45 pm    Post subject: Crontab e /var/log/message Reply with quote

Volevo chiedere se c'è un modo per evitare che Vixie-Cron mi riempia il mio (già incasinato) /var/log/messages con queste rige!

Code:
Mar 19 19:00:01 maurs cron[8127]: (root) CMD (test -x /usr/sbin/run-crons && /usr/sbin/run-crons )
Mar 19 19:00:01 maurs cron[8128]: (root) CMD (rm -f /var/spool/cron/lastrun/cron.hourly)
Mar 19 19:10:01 maurs cron[8194]: (root) CMD (test -x /usr/sbin/run-crons && /usr/sbin/run-crons )
Mar 19 19:20:01 maurs cron[8315]: (root) CMD (test -x /usr/sbin/run-crons && /usr/sbin/run-crons )


Più precisamente, che cosa fa questa riga nel dettaglio (che si trova in /etc/crontab)?
Code:
test -x /usr/sbin/run-crons && /usr/sbin/run-crons

_________________
MaUrS
[HOW-TO] Gentoo su PC datati (aka Portatile Felice)
Maurs' Blog
VDD Project
Back to top
View user's profile Send private message
Kernel78
Moderator
Moderator


Joined: 24 Jun 2005
Posts: 3654

PostPosted: Mon Mar 19, 2007 7:21 pm    Post subject: Re: Crontab e /var/log/message Reply with quote

maurs wrote:
Più precisamente, che cosa fa questa riga nel dettaglio (che si trova in /etc/crontab)?
Code:
test -x /usr/sbin/run-crons && /usr/sbin/run-crons

man test wrote:
-x file
Vero se file esiste ed e eseguibile.

_________________
Le tre grandi virtù di un programmatore: pigrizia, impazienza e arroganza. (Larry Wall).
Prima di postare un file togli i commenti con
Code:
grep -vE '(^[[:space:]]*($|(#|!|;|//)))'
Back to top
View user's profile Send private message
maurs
Tux's lil' helper
Tux's lil' helper


Joined: 16 Oct 2005
Posts: 85

PostPosted: Tue Mar 20, 2007 4:52 pm    Post subject: Reply with quote

Grazie per avermi risposto al quesito n. 2.

Ma tornando al quesito n.1...
per far in modo che contrab nn faccia il storage di quella riga in /var/log/messages ogni volta che l'esegue?
_________________
MaUrS
[HOW-TO] Gentoo su PC datati (aka Portatile Felice)
Maurs' Blog
VDD Project
Back to top
View user's profile Send private message
lavish
Bodhisattva
Bodhisattva


Joined: 13 Sep 2004
Posts: 4296

PostPosted: Tue Mar 20, 2007 5:23 pm    Post subject: Reply with quote

Direi che e' giusto ed opportuno che venga scritto in /var/log/messages
In caso prova ad usare un log parser :)

Dai un'occhiata qui: http://www.loganalysis.org/sections/parsing/generic-log-parsers/

Ciao!
_________________
minimalblue.com | secgroup.github.io/
Back to top
View user's profile Send private message
Kernel78
Moderator
Moderator


Joined: 24 Jun 2005
Posts: 3654

PostPosted: Tue Mar 20, 2007 7:24 pm    Post subject: Reply with quote

maurs wrote:
Grazie per avermi risposto al quesito n. 2.

Ma tornando al quesito n.1...
per far in modo che contrab nn faccia il storage di quella riga in /var/log/messages ogni volta che l'esegue?

Non posso che concordare con lavish, meglio che la riga sia presente, più che altro se non pasticci di frequente con cron puoi dilazionare il lancio di run-crons modificando la riga
Code:
*/10  *  * * *  root    test -x /usr/sbin/run-crons && /usr/sbin/run-crons
tale riga fa si che ogni 10 minuti venga lanciato (se esiste ed è eseguibile) run-crons che si occupa di
run-crons wrote:
# this script looks into /etc/cron.[hourly|daily|weekly|monthly]
# for scripts to be executed. The info about last run is stored in
# /var/spool/cron/lastrun
se lo porti a ogni 30 minuti riduci a un terzo la verbosità ...
_________________
Le tre grandi virtù di un programmatore: pigrizia, impazienza e arroganza. (Larry Wall).
Prima di postare un file togli i commenti con
Code:
grep -vE '(^[[:space:]]*($|(#|!|;|//)))'
Back to top
View user's profile Send private message
maurs
Tux's lil' helper
Tux's lil' helper


Joined: 16 Oct 2005
Posts: 85

PostPosted: Sat Jun 23, 2007 9:08 pm    Post subject: soluzione Reply with quote

Credo che la migliore soluzione (o meglio, quello che cercavo io) si trovi in questo post.

Grazie cmq per l'attenzione ;)
_________________
MaUrS
[HOW-TO] Gentoo su PC datati (aka Portatile Felice)
Maurs' Blog
VDD Project
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) 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