Article View: ch.comp.os.linux
Article #20407Re: PPP mit Sunrise
From: metti
Date: Wed, 06 Oct 1999 00:00
Date: Wed, 06 Oct 1999 00:00
58 lines
2040 bytes
2040 bytes
root <root@tux.welt.ch> wrote:
>>Probier mal 'wvdial', da musst Du nur Einwahlnummern, Benutzername und
>>Passwort angeben, den Rest macht das Programm. Anleitung gibt's unter
>>[1].
> Funzt nat๏ฟฝrlich prima, aber ist laut SuSE nicht zum automatischem
> Verbindungsaufbau geeignet ...
Was SUSE wohl nicht weiss ist, dass es trotzdem geht :-):
#!/bin/sh
#
# 26/SEP/1999 - Matthias Scherrer
# open the wvdial window and connect to the provider
xterm -fn -adobe-courier-medium-r-normal--10-100-75-75-m-60-iso8859-1 \
-title INTERNET-DIALER \
-bg black -fg green -geometry 30x10+496+0 -e wvdial &
# wait until connection is established
i=0
while [ $i = 0 ]
do
sleep 1
checkproc /usr/sbin/pppd && i=1 || i=0
done
sleep 5
# start the xnetload if not already started
checkproc /usr/X11R6/bin/xnetload || xnetload -if ppp0 &
tleds ppp0 >/dev/null
# send waiting mails
sendmail -q
# fetch mails from provider
fetchmail -v -a >>/home/metti/Mail/log/fetchmail.log 2>&1
ret=$?
# start the mailer (pine), if mails were found
if [ $ret = 0 ]
then
pine.sh
fi
# show some log
tail /home/metti/Mail/log/fetchmail.log
# fetch all "interesting" news
fetch -l -vvv
# start the news-reader (tin)
tin.sh
# finally we disconnect from provider
killproc /usr/bin/wvdial
tleds -k >/dev/null
Technical Details
Message-ID:
<fm6gt7.b9.ln@amiga.pulsar>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<37FA9662.D111D995@spectraweb.ch> <t7bft7.k8.windows_sucks@debian.tb.qad.org> <slrn7vme0t.a1.root@tux.welt.ch>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: f4b73,88fd7acc48b00ce2 X-Google-Attributes: gidf4b73,public From: <metti@datacomm.ch> Subject: Re: PPP mit Sunrise Date: 1999/10/06 Message-ID: <fm6gt7.b9.ln@amiga.pulsar> X-Deja-AN: 533602273 Content-Transfer-Encoding: 8bit Sender: <metti@amiga.pulsar> References: <37FA9662.D111D995@spectraweb.ch> <t7bft7.k8.windows_sucks@debian.tb.qad.org> <slrn7vme0t.a1.root@tux.welt.ch> Content-Type: text/plain; charset=ISO-8859-1 X-Trace: 6 Oct 1999 21:19:26 +0100, line1-basel.datacomm.ch Organization: DataComm (Schweiz) AG MIME-Version: 1.0 User-Agent: tin/pre-1.4-980618 (UNIX) (Linux/2.2.5 (i686)) Newsgroups: ch.comp.os.linux