modem-script-gesucht
Dietmar Goldbeck
dietmar.goldbeck at acm.org
Thu Dec 9 10:33:54 CET 1999
On Wed, Dec 08, 1999 at 12:16:06PM +0100, Thomas Niesel wrote:
>
> Wie bringe ich meinem RedHat6.1 bei, kurz vor abschalten von
> /dev/ttyS1, mein Modem mit AT&Z0 zu resetten ?
> ( ...damit bei ausgeschalteten Rechner das Modem selber Faxe empfängt )
> Hab schon mal versucht, eine Datei mit Inhalt ATZ0 an /dev/ttYS1 zu
> kopieren.
Du musst i.A. vorher mit stty die Schnittstelle konfigurieren.
Ich benutze das folgende shellscript:
#!/bin/sh
PATH=/usr/sbin:$PATH
stty 19200 -echoe -echo raw < /dev/ttyS0 > /dev/ttyS0
chat -v -s -f /usr/local/lib/modemtest/modemtest.chat > /dev/ttyS0 < /dev/ttyS0
--
Alles Gute / best wishes
Dietmar Goldbeck E-Mail: dietmar.goldbeck at acm.org
Reporter (to Mahatma Gandhi): Mr Gandhi, what do you think of Western
Civilization? Gandhi: I think it would be a good idea.
More information about the Linux
mailing list