Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Problems getting dial-up script to work

0 views
Skip to first unread message

Scott A. Boyce

unread,
Aug 11, 1999, 3:00:00 AM8/11/99
to
I am using the following script to login to our SCO 5.0.5 server
through a PPP connection:

proc main

transmit "^M"
waitfor "ogin:"
if $SUCCESS then
transmit $USERID
transmit "^M"
waitfor "ssword:"
if $SUCCESS then
transmit $PASSWORD
transmit "^M"
endif
endif

endproc

The problem I am having is when "Login:" appears, nothing happens. If
I manually type in the login name and hit <enter> the window closes
and I login just fine, so it seems to me that the script is sending
the password just fine. Any ideas on why it won't do the same for the
login name? As always, the help is appreciated.

--
Scott A. Boyce
Systems Administrator
mailto:Meridian*Staf...@worldnet.att.net
CHANGE THE "*" (asterisk) to "_" (underscore) when replying to the
above address!


Chad Lemmen

unread,
Aug 11, 1999, 3:00:00 AM8/11/99
to
I would recommend that you use the gettyacts file then you don't need to
use a login script. Are you dialing in from Windows?

Stuart J. Browne

unread,
Aug 12, 1999, 3:00:00 AM8/12/99
to
I agree with chad here, you should use gettyacts. here's a cutout from
another post...

- add specific user names and passwords in /etc/pppauth such as
(and also specify those in your Windoze DUN connect screen):
kenwolff pppking

- create /etc/gettyacts with (ownership bin,group bin,modes 440):
PPP:/usr/lib/ppp/ppp:-u nppp:0x7e

- change your modem getty line in /etc/inittab (also
/etc/conf/init.d/<file>) and add "-s80" (that's 80 tenths of a second or
8 seconds - the man pages incorrectly say it is seconds):
Se2A:234:respawn:/etc/getty -s80 -t60 tty2A p


umm, as for the script (just for the record), the IF $SUCCESS's arn't
needed.. ie.

proc main
transmit "^M"
waitfor "ogin:"

transmit $USERID, raw
transmit "^M"
waitfor "ssword"
transmit $PASSWORD, raw
transmit "^M"
endproc

but yes.

bkx

Chad Lemmen wrote in message <37B1D9EA...@lemmen.com>...

0 new messages