>>>>> "dt" == David Taylor <[EMAIL PROTECTED]> writes:
dt> I posted a question a few digests back about a problem I'm having with
dt> netcfg... no-one has helped me yet... Please do so. I'll be ever-so
dt> grateful. :-)
dt> I need netcfg to expect something along the lines of: "Student HS# V34+
dt> : ", where '#' is any number, and then send "ppp" in reply (that is how
dt> my ppp connection is initiated).
dt> Please... somebody out there has to have gotten netcfg to work with a
dt> prompt that may be different every time... I'm sick of minicom!
How about just using the final ':' to expect ?
===============
#!/bin/sh
/usr/sbin/pppd connect '/usr/sbin/chat -v -t90 "" "ATZ" "OK"
"ATDTXXX-XXX-XXXX" ": "LOGINNAME" "word:" "YOURPASSWORD"'
/dev/ttyS1 115200 debug lock crtscts asyncmap 0 modem defaultroute mtu 1500
===============
In line above after the number to dial, note the ":" if this is what
is the final charactor it responds with then something like this should work.
This is all one line of course in a simple script.
--
Ray Curtis Unix Consultant/Programmer Curtis Consulting
mailto:[EMAIL PROTECTED] http://www.clark.net/pub/ray
============================================================================
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject.