On Sun, 2006-04-09 at 12:05 +1000, Lloyd Bayley - Berowra PC Services
wrote:
> Yes, true...
> I just run the thing as root and have a .fetchmailrc file in the /root dir..
> It collects mail for all users in the one file (as all 2 users are me!)
> 
> Stupid cron keeps emailing me saying fetchmail said:
> 
> Warning: Running as root is discouraged

What if you put both accounts in the same fetchmailrc file?

When I evactuated for Katrina, I kept this cox.net address,
got a secondary comcast.net address from my father in Dallas,
and put them both in ~/fetchmailrc, thus fetching from both
accounts in the same pass.

BTW, I run it out of cron:
    #!/bin/sh
    MAILTO=""
    # m h  dom mon dow   command
    */5 * * * * /usr/local/bin/run_fetchmail.sh
    exit

The fetchmail script can be blocked while I backup my data.
    $ cat /usr/local/bin/run_fetchmail.sh
    #!/bin/sh
    
    if [ -e /tmp/.backup.LOCK ]; then exit 0; fi
    
    /usr/bin/fetchmail -S haggis $1


> Every 5 flipping minutes....
> Am trying to find a way of turning it's user-checking off. :-)
>  
> This didn't happen before....Kernels and packages are getting pickier! :-)
> 
>  
> Lloyd Bayley
> Berowra PC Services
> P.O. Box 270
> Berowra Heights NSW 2082 
>  
> Ph:     (02) 9456-0292
> Mob:    0411-541-007
> Email:  [EMAIL PROTECTED]
> Web:    www.berowrapc.com 
> 
> -----Original Message-----
> From: 'Clive Menzies' [mailto:[EMAIL PROTECTED] 
> Sent: Sunday, 9 April 2006 10:58 AM
> To: debian-user@lists.debian.org
> Subject: Re: minor (major) fetchmail problem
> 
> On (09/04/06 08:40), Lloyd Bayley - Berowra PC Services wrote:
> > I slept on it and found the problem this morning.
> > For some reason I have the command running as 'fetchmail fetchmail -v'
> took
> > out the first 'fetchmail' and it all came to life.
> > 
> > I haven't touched the crontab for ages so perhaps there was that bug all
> > along that the last install was ignoring and this one picked up.
> > 
> > Dear me, the tiredness-factor plays a big part sometimes! :-)
> > 
> > Kind Regards,
> 
> Hehe :)
> 
> Glad you sorted it out.
> 
> FWIW I run fetchmail as a daemon (no cron); you set the interval in
> /etc/fetchmailrc.  For a single user, it's probably not worth doing but
> if you're collecting mail for multiple users, it saves configuring
> individual .fetchmailrc files.

-- 
-----------------------------------------------------------------
Ron Johnson, Jr.
Jefferson, LA USA

"Its easy to understand why the cat has eclipsed the dog as
modern America's favorite pet. People like pets to possess the
same qualities they do. Cats are irresponsible and recognize no
authority, yet are completely dependent on others for their
material needs. Cats cannot be made to do anything useful. Cats
are mean for the fun of it."
P.J. O'Rourke, satirist


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to