View previous topic :: View next topic |
Author |
Message |
DGilmour Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/33026945044400e0ddbac9.jpg)
Joined: 28 Aug 2005 Posts: 132 Location: Abbadia San Salvatore
|
Posted: Tue Oct 04, 2005 12:39 pm Post subject: crontab che passione... |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Scen Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/13649464064b974bf2b19cc.jpg)
Joined: 29 Jul 2003 Posts: 2470 Location: Padova, Italy
|
Posted: Tue Oct 04, 2005 1:11 pm Post subject: |
|
|
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! ![Cool 8)](images/smiles/icon_cool.gif) _________________ 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 |
|
![](templates/gentoo/images/spacer.gif) |
|