Date: Fri, 30 Nov 2001 16:45:54 +0200 From: "Dave Raven" <dave@raven.za.net> To: <freebsd-questions@freebsd.org> Subject: Kermit (and pppd) Message-ID: <001901c179ad$b6fb2520$1400a8c0@evolve.za.net>
next in thread | raw e-mail | index | archive | help
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<POINTOPOINT,MULTICAST> 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 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Diso-8859-1"> <META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2>Hello all,</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2> 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:</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>#!/bin/sh<BR>ps ax |grep pppd |grep -v=20 grep<BR>pid=3D`ps ax |grep pppd |grep -v grep|awk '{print=20 $1;}'`<BR> if [ "X${pid}" !=3D "X" ] ;=20 then<BR>  = ; echo=20 'killing pppd, PID=3D'=20 ${pid}<BR> &nb= sp;=20 kill ${pid}<BR> fi<BR>ps ax |grep kermit |grep -v=20 grep<BR>pid=3D`ps ax |grep kermit |grep -v grep|awk '{print=20 $1;}'`<BR> if [ "X${pid}" !=3D "X" ] ;=20 then<BR> echo 'killing kermit, = PID=3D'=20 ${pid}<BR> kill -9=20 ${pid}<BR>fi</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2># reset ppp interface<BR>ifconfig ppp0=20 down<BR>#ifconfig ppp0 delete<BR>ifconfig ppp0</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2># enable autoanswer mode<BR>kermit -y=20 /etc/ppp/kermit.ans</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2># run ppp<BR>pppd /dev/cuaa0 = 19200<BR></FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>My kermit.ans contains: </FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>set line /dev/cuaa0<BR>set speed = 19200<BR>set file=20 type binary<BR>set file names literal<BR>set win 8<BR>set rec pack = 1024<BR>set=20 send pack 1024<BR>set block 3<BR>set term bytesize 8<BR>set command = bytesize=20 8<BR>set flow none</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>pau 1<BR>out +++<BR>inp 5 OK<BR>out = ATH0\13<BR>inp=20 5 OK<BR>echo \13<BR>out ATS0=3D1\13 ; change this to out = ATS0=3D0\13 if=20 you want to=20 disable<BR> &n= bsp; =20 ; autoanswer mod<BR>inp 5 OK<BR>echo \13<BR>exit<BR></FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>This should all work.</FONT></DIV> <DIV><FONT face=3DArial size=3D2>However, when I run the kermit -y = kermit.ans I get=20 these errors everytime it sends a command:</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>[root@chaos /etc/ppp]# sh = pppserv<BR>ppp0:=20 flags=3D8010<POINTOPOINT,MULTICAST> mtu 1500<BR>?Connection on = /dev/cuaa0 is=20 not open.<BR>?Connection on /dev/cuaa0 is not open.<BR>?Connection on = /dev/cuaa0=20 is not open.<BR>?Connection on /dev/cuaa0 is not open.</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>?Connection on /dev/cuaa0 is not=20 open.<BR>?Connection on /dev/cuaa0 is not open.</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>Closing /dev/cuaa0...OK<BR>[root@chaos = /etc/ppp]#=20 <BR></FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Any ideas on why this would be=20 happening?</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Thanks in advance</FONT></DIV> <DIV><FONT face=3DArial size=3D2>--Dave</FONT></DIV> <DIV><FONT face=3DArial size=3D2>OpteqSec</FONT></DIV> <DIV><FONT face=3DArial size=3D2> </DIV></FONT></BODY></HTML> ------=_NextPart_000_0016_01C179BE.7A40D1A0-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001901c179ad$b6fb2520$1400a8c0>