>
> 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.
>
Interesting idea.
> 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.
>
ip-down seems like the correct place to put the script.
> I am using diald 0.16-5 under Redhat 5.2.
>
Hmm. Sounds like a job for expect (tcl extension designed to
automate conversational protocols). Or you could just use
tcl or perl to open the tty, send the commands and read back
the results.
One thing to watch out for is the locking of the port. If you are
only using diald, you should be ok, but if you are running the port
bidirectional (i.e. with mgetty to handle incoming faxes or calls) I'm
not sure when in the process the ip-down script is called, and when
the LCK files is removed to unlock the port. Does diald or pppd call
the ip-down script.
-- cary
-
To unsubscribe from this list: send the line "unsubscribe linux-diald" in
the body of a message to [EMAIL PROTECTED]