*BSD News Article 41781


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!newshost.marcam.com!news.mathworks.com!news.kei.com!ddsw1!not-for-mail
From: jfroths@MCS.COM (Jay F. Rothschild)
Newsgroups: comp.os.386bsd.questions
Subject: FreeBSD 2.0 autologin for SLIP
Date: 29 Jan 1995 15:32:49 -0600
Organization: MCSNet Subscriber Account, Chicago's First Public-Access Internet!
Lines: 49
Message-ID: <3gh1i1$km3@Mercury.mcs.com>
NNTP-Posting-Host: mercury.mcs.com
X-Newsreader: TIN [version 1.2 PL2 (KSD)]


WHen I use kermit to manually login to my SLIP provider
everything works fine using the following .kermrc and the
"zzz" file after packet mode is enable to slattach and
ifconfig etc... But when I use the "xxx" file to execute
the "yyy" kermit script it hangs (seems like sl0 freezes)
after 5-10 mins. This is with a FreeBSD 2.0 system. Any
ideas or better suggestions?

Especially curious how to do this with tip and the redial
with lost carrier command.

# jay's .kermrc kermit init file
set line /dev/cua00
set modem courier
set receive packet 9024		# packet size receive
set send packet 9024		# packet size send 
set file type binary		# file type
set block 3			# use 16bit CCITT crc's
set window 15 			# use 15 sliding window slots
set file name literal		# do not translate file names
set file coll overwrite		# overwrite if file allready exists
set file dis crt		# display in terms of cps and percentage
set flow rts			# hardware flow control
set con unprefix all		# unpre all control characters
set con prefix 0 3 131		# prefix necessary control characters
set speed 57600			# use 57600bps DTE


# xxx file - use sh to execute
kermit -C "take yyy"

# yyy file - kermit script
set input echo on
dial 4651091
output\13
input 20 login:
output myname\13
input 20 ssword:
output mypassword\13 # this should be end but doesn't work
connect              # without this line ???


# zzz file - use sh to execute after packet mode
#            enabled for slip
#            204.xxx is me 199.xxx is provider
slattach -h /dev/cua00
ifconfig sl0 inet 204.xxx 199.xxx
route add default 199.xxx