Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
crontab che passione...
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) Forum di discussione italiano
View previous topic :: View next topic  
Author Message
DGilmour
Tux's lil' helper
Tux's lil' helper


Joined: 28 Aug 2005
Posts: 132
Location: Abbadia San Salvatore

PostPosted: Tue Oct 04, 2005 12:39 pm    Post subject: crontab che passione... Reply with quote

Ho un piccolo problema con crontab. Gli faccio leggere le mie email ogi 10 minti con fetchmail:

/10 8-23 * * * /usr/bin/fetchmail

Ora succede che nella mia email ho tutta una serie di email da crontab che mi mostra l'output di fetchmail:
...
fetchmail: Server CommonName mismatch: yoda.fidelionet.org != yoda.kerescontorni.com
fetchmail: Server CommonName mismatch: yoda.fidelionet.org != yoda.kerescontorni.com
fetchmail: No mail for keres@kerescontorni.com at yoda.kerescontorni.com
1 message for keres@fidelionet.org at yoda.fidelionet.org (1641 octets).
reading message keres@fidelionet.org@yoda.fidelionet.org:1 of 1 (1641 octets) . flushed
...

Ho messo l'opzione -s a fetchmail, ma mi rimane sempre un problema sulle email:
fetchmail: Server CommonName mismatch: yoda.fidelionet.org != yoda.kerescontorni.com
fetchmail: Server CommonName mismatch: yoda.fidelionet.org != yoda.kerescontorni.com


Mi ricordo che in crontab si pova far in modo da inidirizzare l'output dei programmi facendo in modo da non ricevere email inutili in quantità...

Mica mi sapreste dire come si fà? Su google ho trovato un esempio di indirizzamento del tipo:
/10 8-23 * * * /usr/bin/fetchmail -s 2>&1
ma non ho risolto nulla...

Ciao a tutti, Keres.
Back to top
View user's profile Send private message
Scen
Retired Dev
Retired Dev


Joined: 29 Jul 2003
Posts: 2470
Location: Padova, Italy

PostPosted: Tue Oct 04, 2005 1:11 pm    Post subject: Reply with quote

Da http://ildp.pluto.it/HOWTO/Bash-Prog-Intro-HOWTO-3.html#ss3.6
Quote:

Questo porterà ogni output di un programma su un file. Può risultare a volte utile per cron, se vuoi che un comando passi in assoluto silenzio.

rm -f $(find / -name core) &> /dev/null


Questo (pensando a cron) eliminerà ogni file chiamato 'core' in qualsiasi directory. Osserva che dovresti essere piuttosto sicuro di cosa sta facendo un comando, prima di eliminarne ogni output.

Spero ti possa servire! 8)
_________________
I was born in a deep forest/I wish I could live here all my life/I am made from stones and roots/My home, these woods and roads
All my life I loved this sound/Of the woods all around/Eagles flies where the winds blows free
Journey is my destiny
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano 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