Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Fedora c3/5, Suse pro 10/openSuse 10.2, RHES, Zenwalk.....
Posts: 97
Rep:
fetchmail daemon
Hi all,
I might be going about this all the wrong way. I added 'fetchmail -d 600' to the bottom of my /etc/profile file with the goal of having my mail automatically checked every ten minutes. This works fine. However, obviously if there is a second login on the same machine fetchmail moans (can't have daemon running twice). Is there a better way to get the fetchmail daemon to run on its own?
Maybe I could write a code to check if fetchmail -d is running and if not start it. I can't think how I'd go about this.
Another thing you can do is have a cron job to run fetchmail every 10 minutes. This is mine for running it every 5 minutes:
*/5 * * * * /usr/bin/fetchmail >/dev/null 2>&1
This line just goes in your user's crontab. I had tried kotnik's suggestion myself, but this didn't work as it meant running fetchmail as root and I got an error/warning message saying not to do that.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.