From owner-freebsd-questions Fri Nov 30 7:28:37 2001 Delivered-To: freebsd-questions@freebsd.org Received: from chaos.evolve.za.net (chaos.evolve.za.net [196.34.172.107]) by hub.freebsd.org (Postfix) with ESMTP id 2BB2637B405 for ; Fri, 30 Nov 2001 07:28:06 -0800 (PST) Received: from snarf ([192.168.0.20]) by chaos.evolve.za.net (8.11.6/1.1.3) with SMTP id fAUEn0T03022 for ; Fri, 30 Nov 2001 16:49:00 +0200 (SAST) (envelope-from dave@raven.za.net) Message-ID: <001901c179ad$b6fb2520$1400a8c0@evolve.za.net> From: "Dave Raven" To: Subject: Kermit (and pppd) Date: Fri, 30 Nov 2001 16:45:54 +0200 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0016_01C179BE.7A40D1A0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG This is a multi-part message in MIME format. ------=_NextPart_000_0016_01C179BE.7A40D1A0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello all, I copied a few ppp scripts from the fBSD man pages and it uses = kermit to handle the modem connections / whatever. I have created a = /etc/ppp/pppserv file containing: #!/bin/sh ps ax |grep pppd |grep -v grep pid=3D`ps ax |grep pppd |grep -v grep|awk '{print $1;}'` if [ "X${pid}" !=3D "X" ] ; then echo 'killing pppd, PID=3D' ${pid} kill ${pid} fi ps ax |grep kermit |grep -v grep pid=3D`ps ax |grep kermit |grep -v grep|awk '{print $1;}'` if [ "X${pid}" !=3D "X" ] ; then echo 'killing kermit, PID=3D' ${pid} kill -9 ${pid} fi # reset ppp interface ifconfig ppp0 down #ifconfig ppp0 delete ifconfig ppp0 # enable autoanswer mode kermit -y /etc/ppp/kermit.ans # run ppp pppd /dev/cuaa0 19200 My kermit.ans contains:=20 set line /dev/cuaa0 set speed 19200 set file type binary set file names literal set win 8 set rec pack 1024 set send pack 1024 set block 3 set term bytesize 8 set command bytesize 8 set flow none pau 1 out +++ inp 5 OK out ATH0\13 inp 5 OK echo \13 out ATS0=3D1\13 ; change this to out ATS0=3D0\13 if you want to = disable ; autoanswer mod inp 5 OK echo \13 exit This should all work. However, when I run the kermit -y kermit.ans I get these errors = everytime it sends a command: [root@chaos /etc/ppp]# sh pppserv ppp0: flags=3D8010 mtu 1500 ?Connection on /dev/cuaa0 is not open. ?Connection on /dev/cuaa0 is not open. ?Connection on /dev/cuaa0 is not open. ?Connection on /dev/cuaa0 is not open. ?Connection on /dev/cuaa0 is not open. ?Connection on /dev/cuaa0 is not open. Closing /dev/cuaa0...OK [root@chaos /etc/ppp]#=20 Any ideas on why this would be happening? Thanks in advance --Dave OpteqSec ------=_NextPart_000_0016_01C179BE.7A40D1A0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello all,
 
    I copied a few ppp = scripts from=20 the fBSD man pages and it uses kermit to handle the modem connections /=20 whatever. I have created a /etc/ppp/pppserv file = containing:
 
#!/bin/sh
ps ax |grep pppd |grep -v=20 grep
pid=3D`ps ax |grep pppd |grep -v grep|awk '{print=20 $1;}'`
    if [ "X${pid}" !=3D "X" ] ;=20 then
           = ; echo=20 'killing pppd, PID=3D'=20 ${pid}
          &nb= sp;=20 kill ${pid}
    fi
ps ax |grep kermit |grep -v=20 grep
pid=3D`ps ax |grep kermit |grep -v grep|awk '{print=20 $1;}'`
    if [ "X${pid}" !=3D "X" ] ;=20 then
        echo 'killing kermit, = PID=3D'=20 ${pid}
        kill -9=20 ${pid}
fi
 
# reset ppp interface
ifconfig ppp0=20 down
#ifconfig ppp0 delete
ifconfig ppp0
 
# enable autoanswer mode
kermit -y=20 /etc/ppp/kermit.ans
 
# run ppp
pppd /dev/cuaa0 = 19200
 
 
 
My kermit.ans contains:
 
set line /dev/cuaa0
set speed = 19200
set file=20 type binary
set file names literal
set win 8
set rec pack = 1024
set=20 send pack 1024
set block 3
set term bytesize 8
set command = bytesize=20 8
set flow none
 
pau 1
out +++
inp 5 OK
out = ATH0\13
inp=20 5 OK
echo \13
out ATS0=3D1\13   ; change this to out = ATS0=3D0\13 if=20 you want to=20 disable
          &n= bsp;        =20 ; autoanswer mod
inp 5 OK
echo \13
exit
 
 
This should all work.
However, when I run the kermit -y = kermit.ans I get=20 these errors everytime it sends a command:
 
[root@chaos /etc/ppp]# sh = pppserv
ppp0:=20 flags=3D8010<POINTOPOINT,MULTICAST> mtu 1500
?Connection on = /dev/cuaa0 is=20 not open.
?Connection on /dev/cuaa0 is not open.
?Connection on = /dev/cuaa0=20 is not open.
?Connection on /dev/cuaa0 is not open.
 
?Connection on /dev/cuaa0 is not=20 open.
?Connection on /dev/cuaa0 is not open.
 
Closing /dev/cuaa0...OK
[root@chaos = /etc/ppp]#=20
 
 
Any ideas on why this would be=20 happening?
 
Thanks in advance
--Dave
OpteqSec
 
------=_NextPart_000_0016_01C179BE.7A40D1A0-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message