On Monday 10 May 2004 10:17 pm, John Lalla wrote:
On 10 May, David Rankin wrote:
Jim,
Why are you using cron?? Just start fetchmail in daemon mode and it will do what you want:
[root@Nemesis david]# fetchmail -f /etc/fetchmailrc [root@Nemesis david]# cat /etc/fetchmailrc set daemon 600 set postmaster david set logfile /var/log/fetchmail.log poll pop.cox-internet.com proto pop3 user me.cox-internet.com pass thepassword is david here
-- David C. Rankin, J.D., P.E. RANKIN * BERTIN, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 (936) 715-9333 (936) 715-9339 fax www.rankin-bertin.com -- ----- Original Message ----- From: "Jim Sabatke"
To: Sent: Monday, May 10, 2004 4:25 PM Subject: [SLE] cron email Is there anyway to suppress cron emails on successful running of a program. I'm using cron to check my email via fetchmail, and it emails me every 5 minutes. I want fetchmail to check, even when I'm not logged in, so I'm using cron.
-- Jim Sabatke Hire Me!! - See my resume at http://my.execpc.com/~jsabatke
Do not meddle in the affairs of Dragons, for you are crunchy and good with ketchup.
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
Running fetchmail in daemon mode is all well and good, but if one is running multiple accounts, each wanting their own mail checked whether logged in or not, cron is the way to go to my mind.
Not unless you *really* *really* have to allow each user to have their own .fetchmailrc. You can do it all in one /etc/.fetchmailrc with a lot less hassel. (running 6 accts here on a home LAN)
As follows (assuming you're polling a POP account):
~/.crontab --
*/5 * * * * /usr/bin/fetchmail -s -f /home/joeblow/.fetchmailrc
~/.fetchmailrc --
poll <your isp> with proto POP3 user 'joeblow' there with pass 'whatever' is 'joeblow' here mda "/usr/bin/procmail -d %s'
~/.procmailrc of each users choice (I have ~/.proc.. calling four additional scripts for mail handling as well).
To my mind, the beauty of *nix, single apps that do one thing well - in conjuction with others, of course.
Just my two cents.
-- +----------------------------------------------------------------------------+ + Bruce S. Marshall bmarsh@bmarsh.com Bellaire, MI 05/11/04 06:46 + +----------------------------------------------------------------------------+ "Eloquence: Saying the proper thing and stopping." --Stanley Link