[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [REPHRASED] fetchmail

On Sun, 27 Apr 2003, Albert Dengg wrote:

> ...
> > If I run fetchmail from init.d as user fetchmail, how can I set up
> > things so that users can still configure fetchmail using their
> > ~/.fetchmailrc?
> ...
> well, you could write a init.d script that does the following:
> for i in `find /home -name .fetchmailrc 2>/dev/null|cut -d/ -f3`; do
> 	/bin/su $i -c /usr/bin/fetchmail-d 300; done
> done
> it should work I think, though it is untested..

Of course! Why didn't I think of this, :-). Although Paul's solution
(using crontab) might be a bit cleaner. This way users can decide for
themselves whether they want to run fetchmail or not. OTOH, they have to
edit their crontab, but that shouldn't be too much of a problem...


Reply to: