Le 2002.07.19 13:22, Nicolas Mass� a �crit :
Bonjour,

une petite question : comment savoir � quelle vitesse est connect� pppd ?
(j'ai d�ja essay� le parametre $3 du script ip-up mais il me dit
invariablement 115200)
J'en aurais bien besoin pour faire des essais de connection (Car la ligne
me
semble exag�r�ment lente)

Merci d'avance !


J'utilise wmppp.app pour me connecter chez mon FAI.
Il utilise un petit script qui scanne les logs pour avoir la vitesse.
Ne pas oublier les options comme expliqu� dans le commentaire du script.

Le voici ci-joint:

#!/bin/sh

# this is an example getmodemspeed script
# I add '-r /var/tmp/modem.speed' to the 'connect' line in
# /etc/ppp/peers/provider and a 'REPORT CONNECT' line to
# /etc/chatscripts/provider. From my USR modem I get something like this:
#
# Opening "/var/tmp/modem.speed"...
# chat:  Sep 20 07:34:42 CONNECT nnnnn/ARQ/V32/LAPM/V42BIS
# Closing "/var/tmp/modem.speed".
#
# I'm interested in the "nnnnn" part. The following works for me, but YMMV

grep CONNECT /var/tmp/modem.speed | \
        tail -1 | \
        sed -e 's,^.*CONNECT[[:blank:]]*\([[:digit:]]*\).*$,\1,'

exit 0


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Répondre à