[EMAIL PROTECTED] wrote:

Sluggers,

I have a need to dial a remote site that is a data logger, I.E. I don't want to
run PPPD.  I need to dial the site and interogate the logger, downloading it's
data and then terminating the connection all in an automated fashion. I can
currently do this manually using minicom, but I wish to automate the process.

Does anyone have any suggestions to a program that might be able to do this with
a script? It must including branching, send this if get that then, else, and
timeout I.E send command, if no response within X seconds then send something
else or hangup.

I've looked at wvdial and chat and they look like they are mostly intended for
establishing a ppp session to an ISP, or are they more sophisticated? They look
like they can expect "ogin:" and send a username and password, so I assume that
they can then palm off to another program at the end of the script. But the
chat script looks very simple, I.e it doesn't appear to support branching and
what happens if you send a string and get no response? I.E. the expect doesn't
match. Will it time out and return to  the next line of the script?

Tips, pointer suggestions appreciated. I'm kinda hoping that a simple chat
script is the way to go.


The "Conversations" or "hanshakings" before and after the modems are connected will be similar. The difference is once you have connection instead of executing "PPPD", execute
whatever "Comms" program you wish to execute along.

Another perspective as to how to connect via modems look for examples on how to connect using "UUCP" program instead of "PPPD". Maybe you may even just use UUCP to interrogate your logger, download the report and terminate the connection. But you need to setup UUCP on both machines, of course. Extra work, but once working little maintenance is required.

TIA's

Pete


--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to