> Hi everybody
> i want to check my mail every hour using a modem connection to the internet.
I used pppd(8) (look for "demand" in the man page), along with wvdial(1)
to set up dial on demand.
I also started fetchmail with ip-up to check for mail every few minutes
while on line and used the -M option to prevent fetchmail from keeping
the connection open.
Then I simply just used cron to send out a ping every hour to trigger
dial on demand and to allow fetchmail to read the mail again.
I'm sure there's easier methods, but this was easy enough.....
I used this modified version from SuSE's wvdial.dod to start pppd. It
worked, so I never closely looked at the settings to make sure they all
PPPPDPARAMS="$Modem $Baud modem crtscts $DEFAULTROUTE \
lcp-echo-interval 0 nodetach \
user $Username ipcp-accept-local ipcp-accept-remote \
call wvdial demand idle $Idle";
pppd $PPPPDPARAMS \
connect "/usr/bin/wvdial --chat" >&/dev/null & PPPDPID=$!;
echo $PPPDPID >$PIDFILE;