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 /~~\_/[EMAIL PROTECTED] /~~\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=* * * *| [EMAIL PROTECTED] | * * | http://shaoz.dyn.ml.org | * *** | http://www.cse.unsw.edu.au/~s2193893| * * *===Oooo.=* * * *.oooO ( | * * * * *( ) ) / * **\ ( (_/ \_)
Re: Can't start fetchmail in ip-up.d
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? Cheers, Mark. _/\___/~~\ /~~\_/~~\__/~~\__Mark_Phillips /~~\_/[EMAIL PROTECTED] /~~\HE___/~~\__/~~\APTAIN_ /~~\__/~~\ __ They told me I was gullible ... and I believed them!
Re: Can't start fetchmail in ip-up.d
Hi, You may want to look in the file: pccmu1 more /usr/doc/fetchmail/fetchmail-up #!/bin/sh test -r /etc/fetchmailrc \ fetchmail --syslog --invisible --fetchmailrc /etc/fetchmailrc It's an example you may use. Important thing is location of rc file. Works for me. That directory contains other useful info Sasha. 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? Cheers, Mark. _/\___/~~\ /~~\_/~~\__/~~\__Mark_Phillips /~~\_/[EMAIL PROTECTED] /~~\HE___/~~\__/~~\APTAIN_ /~~\__/~~\ __ They told me I was gullible ... and I believed them! -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] /dev/null
Can't start fetchmail in ip-up.d
Hi all, 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... So what do I do?? Thanks for any help in advance.. Shao.
Re: Can't start fetchmail in ip-up.d
On Thu, 10 Dec 1998 19:04:19 +1100 (EST), you 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. You need to put executable shell scripts in there. So your file fetchmail should contain #!/bin/sh fetchmail with the proper parameters for fetchmail set. Also you need to set the executable bit on that file. Greetings Marc -- -- !! No courtesy copies, please !! - Marc Haber |Questions are the | Mailadresse im Header Karlsruhe, Germany | Beginning of Wisdom | Fon: *49 721 966 32 15 Nordisch by Nature | Lt. Worf, TNG Rightful Heir | Fax: *49 721 966 31 29