Hi

Invoke  cron as
crontab -e <Your_User_Name> (Eg. crontab -e mani)
Now type in the following line:

*/5 * * * *  /usr/bin/fetchmail -f /home/mani/.fetchmailrc >/dev/null
2>/dev/null


The above line specifies to run /usr/bin/fetchmail every 5 minutes, with
the config. file as /home/mani/.fetchmailrc (You can specify any alternate
config. file.)  There should only be a single line (ie. don't break the
line)

For details, man crontab.
For details on fetchmail, man fetchmail.

BTW, my .fetchmailrc looks something like:

poll pop.mail.yahoo.com protocol POP3 timeout 180
username XXX password PPP, is YYY here
keep
flush

It says my POP server is pop.mail.yahoo.com & also gives my user ID &
password. 'is YYY here' indicates my local user id. This is useful when
your e-mail id at the POP Server is different from your local User ID
(most of the time, this is the case.)
See that permission of .fetchmailrc is 0600.

Sreeji

On Fri, 15 Dec 2000, Ramasubramani wrote:

> Hi,
> How do i set cron to fetch mails automatically, every 5 minutes.
> thanks
> regards
> mani
> 
> _____________________
> V.Ramasubramani
> Dialognet Technologies
> Y-220, 2nd Avenue, 
> Annanagar 
> Chennai 600 040.
> Ph: 6216851/52/38
> Fax: 6216873
> url:http://www.dialognet.com
> email:[EMAIL PROTECTED]
> 
> 
> 
> ----------------------------------------------
> Find out more about this and other Linux India 
> mailing lists at http://lists.linux-india.org/
> 


----------------------------------------------
The mailing list archives are available at
http://lists.linux-india.org/cgi-bin/wilma/LIH

Reply via email to