Running a script from /etc/ip-up.d
Hi,
I want to start fetchmail when I connect to my ISP using xisp.
I made a script containing:
#! /bin/sh
fetchmail -f /home/cdysthe/.fetchmailrc
I also made a more "complete" script using:
#1 /bin/sh
if [ -x /usr/bin/fetchmail ]
then /usr/bin/fetchmail -f /home/cdysthe/.fetchmailrc
fi
exit 0
Both works fine when I execute them "manually" (by typing in the name
in a terminal window, or click on it in mc).
However, if I put it in /etc/ip-up.d they
do not work as intended: I can see the fetchamil process start as soon as I
am connected, but fetchmail won't collect mail in this case. It just hangs
there inactive.
Another strange thing is that it works and collects mail if I add the line:
"fetchmail -f /home/cdysthe/.fetchmailrc" to the xisp script in /etc/ip-up.d
Can anyone help me out here, please? (I am still a newbie trying to learn:)
TIA
-----------------------------------
Regards,
Christian Dysthe
Email: cdysthe@bigfoot.com
http://www.bigfoot.com/~cdysthe
ICQ 3945810
Date: 13-Apr-99
Time: 10:48:27
This message was sent by XFmail
Powered by Debian GNU/Linux
-----------------------------------
Reply to: