Am 2005-03-28 07:46:03, schrieb Payal Rathod:
You didn't say how you got this output. What does tdfetchmail consist
of?
'tdfetchmail' is a wraper script which looks into each $USER
~/.tdfetchmail/ directory and if it finds a fetchmailrc it
execut it.
So you see in the output, when the cronjob was startet and then
when each $USER was fetched and on which fetchmailrc it was working
on. The last line was the errorstatus of fetchmail.
This all is done by the tdfetchmail wraper script.
Please not, that it works perfectly on a FileServer where $USER have
only access to ther $HOME and no shell for executing fetchmail manaly.
__( command 'ls -AlG /usr/bin/fetchmail' )____________________________
/
| -rwx------ 1 root 189512 4. Jul 2004 /usr/bin/fetchmail
\______________________________________________________________________
__( command 'ls -AlG /usr/sbin/tdfetchmail' )_________________________
/
| -rwx------ 1 root 9940 22. Jan 18:57 /usr/sbin/tdfetchmail
\______________________________________________________________________
__( '/etc/cron.d/tdfetchmail' )_______________________________________
/
| SHELL=/bin/bash
| PATH=/sbin:/bin:/usr/sbin:/usr/bin
| MAILTO=xxxxxx(_dot_)xxxxxxx(_dot_)xxxxx(_at_)xxxxxxx(_dot_)xx
|
| */15 * * * * root /usr/sbin/tdfetchmail
\______________________________________________________________________
Oh yes, 'tdfetchmail' fetchs messages one after one and your system
will never overloaded by virusscanners, spamassassin or RBL lookups.
So if you want, you can write the output to individualy logfiles, e.g.,
all 15 minutes one and send it with:
__( 'send_logfile' )______________________________________
/
| #!/bin/bash
|
| TEMPFILE=`tempfile`
|
| echo "From: fetchmail <root(_at_)yourserver(_dot_)tld>" >>$TMPFILE
| echo "To: Your Chef <chef(_at_)yourserver(_dot_)tld>" >>$TMPFILE
| echo "Date: `date -R`" >>$TMPFILE
| echo "Subject: fetchmail log" >>$TMPFILE
| echo "" >>$TMPFILE
| cat $LOGFILE >>$TMPFILE
|
| cat $TMPFILE |ssmtp -t
|
| rm $TMPFILE
\__________________________________________________________
I think, this is what you need...
With warm regards,
-Payal
Greetings
Michelle
--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
Michelle Konzack Apt. 917 ICQ #328449886
50, rue de Soultz MSM LinuxMichi
0033/3/88452356 67100 Strasbourg/France IRC #Debian (irc.icq.com)
signature.pgp
Description: Digital signature