Perfect!  The disconnect command is exactly what I needed.

Got the capture script up and working, now I just need to write
the report script......

  thanks for the help!
  
 -- Michael
 
--Forwarded----------------------------------

Date [Fri, 8 Jan 1999 20:54:24 -0500 (EST)]
To: Michael Hutchinson <[EMAIL PROTECTED]>
>From: Ed Doolittle <[EMAIL PROTECTED]>
Cc: [EMAIL PROTECTED]
Subject: Re: post dial modem data

On Thu, 7 Jan 1999, Michael Hutchinson wrote:

> 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.

If diald is the only program accessing the modem, you could put the
commands to access the stats into the connect script that dials in.
You'll just have to wait a little longer for them.  :-)

But in general, you should attempt to get the stats right away.  You
should check out the "disconnect" command.  If you use chat, the results
will be logged by syslog and saved wherever chat stuff is generally saved.
If you use sh or perl or expect you can save the data wherever you like
and do some more sophisticated processing at the same time.

Ed

-- 
Ed Doolittle <mailto:[EMAIL PROTECTED]>
"Everything we do, we do for a reason."  -- Peter O'Chiese



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

Reply via email to