On 3 Sep 1999, W. Paul Mills wrote: > > I, like many of us here prolly, use fetchmail to grab my mail when I'm > > online. As such, I've set up scripts in ip-up.d to start up fetchmail as > > me to get my mail, and another in ip-down.d to stop fetchmail again when > > I log off. > > > > My script in ip-up.d looks like this: > > > > #!/bin/sh > > /bin/su -c '/usr/bin/fetchmail -d 300 --syslog -F -K -a --smtpaddress \ > > rei' damon > > > > Which works fine, and grabs all my mail, using my ~/.fetchmailrc > > > > My script in ip-down.d looks like this: > > > > #!/bin/sh > > su -c '/usr/bin/fetchmail --quit' damon > > /bin/su -c '/usr/bin/fetchmail --quit' damon > ; Because the path is NOT set. > > > This one doesn't seem to work at all. After I log off, the fetchmail > > process is still working, and I see fetchmail messages in my xconsole. > > > > This isn't a huge problem, but it *should* work, I would have thought. > > > > Anyone have any suggestions (yes, the script is executable, and it works > > if I call it manually from root...) > > Works because it is in your path when you run manually!
You may also want to have a look at the file /usr/doc/fetchmail/contrib/ip-up, which discusses some intricacies related to running fetchmail from ip-{up,down} scripts called by pppd. Francois -- Francois Gelis / LAPTH / [EMAIL PROTECTED] phone:(+33) 4 50 09 16 80 / fax:(+33) 4 50 27 94 95