Re: [SLUG] Modem Dialing software

2005-09-17 Thread Graham Smith
On Sat, 17 Sep 2005 08:13, [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.


Have a look at C-Kermit, you can automate almost anything to do with modems 
via scripting.

http://www.columbia.edu/kermit/
-- 
Regards,

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


[SLUG] Modem Dialing software

2005-09-16 Thread prundle
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


Re: [SLUG] Modem Dialing software

2005-09-16 Thread O Plameras

[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


Re: [SLUG] Modem Dialing software

2005-09-16 Thread Terry Collins

[EMAIL PROTECTED] wrote:


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.


Look for BBS dialer programs.
Exceedingly common a decade ago.

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


Re: [SLUG] Modem Dialing software

2005-09-16 Thread Peter Hardy
On Sat, 2005-09-17 at 08:13 +1000, [EMAIL PROTECTED] wrote:
 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.

expect! http://expect.nist.gov/

It's kind of like chat on steroids. Should be able to handle everything
you need, if you can figure out the somewhat terse documentation.

-- 
Pete

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