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