I have a similar setup to yourself, here are the scripts you need, we are
using a Courier I-Modem, you may have to change the ATxxx stuff to suite
what your modem can do.

-In a script called /etc/ppp/disconnect-
#!/bin/sh

echo Disconnect At `date` >> /var/log/disconnect.log
/usr/sbin/chat -v -s -S -f /etc/ppp/pppchat.disconnect 2>>
/var/log/disconnect.log

-In a file called /etc/ppp/pppchat.disconnect-
"" AT OK
#ati3 OK
ati4 OK
ati5 OK
ati6 OK
#ati7 OK
#ati11 OK
ati12 OK
ati16 OK
atK0 OK
at OK


Add the following line to your diald.conf
disconnect /etc/ppp/disconnect

Remember /etc/ppp/disconnect should have x attributes for the uid that diald
runs under.

-----Original Message-----
From: Michael Hutchinson <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: 09 January 1999 00:50
Subject: post dial modem data


>I am using diald to establish connections to my ISP.  After a connection
>terminates I would like to pull some connection statistics from the
>modem using AT commands and log the data to a file.
>
>Can anyone suggest a way to automate this?  I considered using chat,
>within the ip-down script, but I can't figure out how to connect chat to
>the serial device directly.
>
>I am using diald 0.16-5 under Redhat 5.2.
>
>TIA,
>
> -- Michael
>
>-
>To unsubscribe from this list: send the line "unsubscribe linux-diald" in
>the body of a message to [EMAIL PROTECTED]


-
To unsubscribe from this list: send the line "unsubscribe linux-diald" in
the body of a message to [EMAIL PROTECTED]

Reply via email to