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

Re: Can't start fetchmail in ip-up.d



On Sat, 12 Dec 1998, Mark Phillips wrote:

> 
> >	In my ip-up, I have a line
> >		run-parts /etc/ppp/ip-up.d
> >
> >	So I put a file called fetchmail with a single line fetchmail.
> >
> >	I also made it executable. 
> >
> >	But when my link is up, nothing happened. I tried to ps ax the
> >process. It is not there. I also checked /var/log/fetchmail, and nothing
> >is written there...
> 
> I'm no expert, but I have a thought which may or may not help.
> 
> When ip-up is run, which user actually runs it?  Is it root, or is it
> daemon or something?  If it is not root, then it might not use the
> .fetchmailrc in the root home directory?  Could that be your problem?
> 
> And while I'm here, can I ask a question?  With your setup, is the idea
> that fetchmail will only run once, every time the ppp link goes up?  What
> if new mail arrives while the ppp link is still up?

	You can use:
		set daemon 300 in .fetchmailrc. which will pull your mails
to your local machine for every 5 mins. You can even change 300 to 1, then
fetchmail will trying to contact the server for every seconds...

	My problem is now fixed. It is ran by root. So all I need to do is
to put a .fetchamilrc in the root directory, then everything is fine.

	The only problem I am having now is to use $LOGNAME. I am trying
to use this variable to forward mails to each individual account... I am
still wokring on it! :)

> 
> Cheers,
> 
> Mark.
> 
> _/~~~~~~~~\___/~~~~~~\____________________________________________________
> ____/~~\_____/~~\__/~~\__________________________Mark_Phillips____________
> ____/~~\_____/~~\________________________________mark@ist.flinders.edu.au_
> ____/~~\HE___/~~\__/~~\APTAIN_____________________________________________
> ____/~~\______/~~~~~~\____________________________________________________
> __________________________________________________________________________
>         "They told me I was gullible ... and I believed them!" 
> 
> 


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Shao Zhang                             \\/
5/28-30 Victoria AVE                   OxO
PENSHURST 2035                         //\
Sydney, NSW                           ///\\
Australia                            ////\\\
                                    / ^   _ \
                                   ( (o) (o) )
****  *   *           *=======oOOO=====(_)=====OOOo=========*
   *  *  *            |      s2193893@cse.unsw.edu.au       |
****  * *             |       http://shaoz.dyn.ml.org       |
*   *******           | http://www.cse.unsw.edu.au/~s2193893|
****  * *             *===================Oooo.=============*
   *  *  *                        .oooO   (   |
 * *  * * *                        (   )   ) /
   *  *    *                        \ (   (_/
                                     \_)
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   


Reply to: