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

Re: Fetchmail not exiting in ip-down

See correction below!

dm-debian-user@empire.net.au (Damon Muller) writes:

> Hi gang,
> 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!

*********************** Running Debian Linux ***********************
*   For God so loved the world that He gave his only begotten Son,  *
*   that whoever believes in Him should not perish...    John 3:16  *
* W. Paul Mills              *  Topeka, Kansas, U.S.A.              *
* EMAIL= Paul@Mills-USA.com  *  WWW= http://Mills-USA.com/          *
* Bill, I was there several years ago, why would I want to go back? *
************* pgp public key on keyservers everywhere? *************/

Reply to: