Di Pietro Nicolas a �crit, mardi 11 d�cembre 2001, � 18:59 : [...] > En fait, ce que je cherche, c'est la vitesse exprim�e en bauds lors de > la connection du modem (comme lorsqu'on se connecte sous W$) je sais que > certains programmes sous linux la donne mais la pluparts sont sous X. > Le but profond de cela est de voir lors de la connection si elle n'est > pas trop pourrie et, si c'est la cas, la r�initialiser (genre si v<48000 > bauds, poff puis pon � nouveau).
Dans wmppp.app, il y a ce petit script qui pourrait convenir : +---- | # 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 `---- -- Jacques L'helgoualc'h

