old-www/LDP/LG/issue51/tag/17.html

204 lines
7.9 KiB
HTML

<!--startcut ======================================================= -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<META NAME="generator" CONTENT="lgazmail v1.3C.e">
<TITLE>The Answer Guy 51: A bit more about C-Kermit</TITLE>
</HEAD><BODY BGCOLOR="#FFFFFF" TEXT="#000000"
LINK="#3366FF" VLINK="#A000A0">
<!-- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
<H4>"The Linux Gazette...<I>making Linux just a little more fun!</I>"</H4>
<P> <hr> <P>
<!-- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
<center>
<H1><A NAME="answer">
<img src="../../gx/dennis/qbubble.gif" alt="(?)"
border="0" align="middle">
<font color="#B03060">The Answer Guy</font>
<img src="../../gx/dennis/bbubble.gif" alt="(!)"
border="0" align="middle">
</A></H1>
<BR>
<H4>By James T. Dennis,
<a href="mailto:linux-questions-only@ssc.com">linux-questions-only@ssc.com</a><BR>
LinuxCare,
<A HREF="http://www.linuxcare.com/">http://www.linuxcare.com/</A>
</H4>
</center>
<p><hr><p>
<!-- endcut ======================================================= -->
<!-- begin 17 -->
<H3 align="left"><img src="../../gx/dennis/bbubble.gif"
height="50" width="60" alt="(!) " border="0"
>A bit more about C-Kermit</H3>
<h4 align="center">From its author.</h4>
<p><strong>From Frank da Cruz on Mon, 21 Feb 2000
</strong></p>
<!-- ::
A bit more about C-Kermit
~~~~~~~~~~~~~~~~~~~~~~~~~
:: -->
<P><STRONG>
I notice you've got a lot about Kermit in your page:
</STRONG></P>
<P><STRONG><BlockQuote>
<A HREF="http://www.linuxprogramming.com/mirrors/LDP/LDP/LG/issue32/tag_modem.html"
>http://www.linuxprogramming.com/mirrors/LDP/LDP/LG/issue32/tag_modem.html</A>
</BlockQuote></STRONG></P>
<P><STRONG>
Including:
</STRONG></P>
<P><STRONG><FONT COLOR="#000066"><EM><BlockQuote>
Another simple testing trick is to use 'minicom' to dial the phone and
establish your connection (log in). Then use the "Quit without Resetting
the Line" option (using the [Ctrl]+[A], [Q] key sequence). This should
dump you out of minicom and back to a shell prompt without disconnecting
your modem. (It is then possible to invoke pppd on that line --- using an
alternative version of the ISP options file without any "connect"
directive).
</BlockQuote></EM></FONT></STRONG></P>
<P><STRONG><FONT COLOR="#000066"><EM>
That trick doesn't work with kermit --- it won't exit without resetting
the communications line. From what Frank de la Cruz tells me you can't use
C-Kermit as a replacement for 'chat' because of this. Basically he says it
violates some programming standards to do this. (I still don't understand
that --- but it's not currently a priority to me. If someone understands
it and wants to explain --- write an article and send me a copy).
</EM></FONT></STRONG></P>
<P><STRONG>
The explanation is that when a UNIX process exits, all the files that it
opened (and in UNIX, devices count as files) are closed by UNIX itself.
There's nothing the application can do to prevent it. The only way Minicom
could keep the connection open when it exits is by configuring the modem to
ignore DTR, but you could do that with Kermit too.
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
But the open device was passed to chat by the parent
process, pppd, which is still running. I guess that's what
chat (or the PPP daemon) is doing.
</BLOCKQUOTE>
<P><STRONG><IMG SRC="../../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
Anyway, C-Kermit 7.0, which was announced 1 Jan 2000:
</STRONG></P>
<P><STRONG><BlockQuote>
<A HREF="http://www.columbia.edu/kermit/ckermit.html"
>http://www.columbia.edu/kermit/ckermit.html</A>
</BlockQuote></STRONG></P>
<P><STRONG>
now incorporates a built-in method for PPP dialing, which you can read about
here:
</STRONG></P>
<P><STRONG><BlockQuote>
<A HREF="http://www.columbia.edu/kermit/case13.html"
>http://www.columbia.edu/kermit/case13.html</A>
</BlockQuote></STRONG></P>
<BLOCKQUOTE><IMG SRC="../../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
I didn't see that, though I know that I did mention
something about the new Kerberos features in one of my
recent issues.
</BLOCKQUOTE>
<P><STRONG><IMG SRC="../../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
It doesn't require any kludges with the modem or cables.
</STRONG></P>
<P><STRONG>
- Frank
P.S. Also note spelling of name: "da Cruz".
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
Sorry. I should have double checked that. I simply
mis-remembered it.
</BLOCKQUOTE>
<BLOCKQUOTE>
PS: I'm the same guy that wrote an article for
sysadmin Magazine about C-Kermit as a replacement for
telnet, rlogin et al, back in about '97
</BLOCKQUOTE>
<BLOCKQUOTE>
You and I corresponded several times back then.
</BLOCKQUOTE>
<!-- sig -->
<!-- end 17 -->
<!--startcut ======================================================= -->
<P> <hr> <P>
<H5 align="center"><a href="http://www.linuxgazette.com/copying.html"
>Copyright &copy;</a> 2000, James T. Dennis
<BR>Published in <I>The Linux Gazette</I> Issue 51 March 2000</H5>
<H6 ALIGN="center">HTML transformation by
<A HREF="mailto:star@tuxtops.com">Heather Stern</a> of
Tuxtops, Inc.,
<A HREF="http://www.tuxtops.com/">http://www.tuxtops.com/</A>
</H6>
<P> <hr> <P>
<!-- begin tagnav ::::::::::::::::::::::::::::::::::::::::::::::::::-->
<TABLE WIDTH="95%"><TR VALIGN="center" ALIGN="center">
<TD colspan="2" rowspan="2"><A
HREF="../lg_answer51.html"
><IMG SRC="../../gx/dennis/answernew.gif"
ALT="[ Answer Guy Current Index ]"></A>
<TD colspan="2" rowspan="2"><A
HREF="../../tag/kb.html"
><IMG SRC="../../gx/dennis/answertoc.gif"
ALT="[ Index of Past Answers ]"></A></td>
<TD WIDTH="11%"><A HREF="../lg_answer51.html#greeting"><img
src="../../gx/dennis/smily.gif" alt="greetings" border="0"></A></TD>
<TD WIDTH="11%"><A HREF="1.html">1</A></TD>
<TD WIDTH="11%"><A HREF="2.html">2</A></TD>
<TD WIDTH="11%"><A HREF="3.html">3</A></TD>
<TD WIDTH="11%"><A HREF="4.html">5</A></TD>
</TR><TR VALIGN="center" ALIGN="center">
<TD WIDTH="11%"><A HREF="5.html">5</A></TD>
<TD WIDTH="11%"><A HREF="6.html">6</A></TD>
<TD WIDTH="11%"><A HREF="7.html">7</A></TD>
<TD WIDTH="11%"><A HREF="8.html">8</A></TD>
<TD WIDTH="11%"><A HREF="9.html">9</A></TD>
</TR><TR VALIGN="center" ALIGN="center">
<TD WIDTH="10%"><A HREF="10.html">10</A></TD>
<TD WIDTH="10%"><A HREF="11.html">11</A></TD>
<TD WIDTH="10%"><A HREF="12.html">12</A></TD>
<TD WIDTH="10%"><A HREF="13.html">13</A></TD>
<TD WIDTH="11%"><A HREF="14.html">14</A></TD>
<TD WIDTH="11%"><A HREF="15.html">15</A></TD>
<TD WIDTH="11%"><A HREF="16.html">16</A></TD>
<TD WIDTH="11%"><A HREF="17.html">17</A></TD>
</TR><TR VALIGN="center" ALIGN="center">
<TD WIDTH="10%"><A HREF="18.html">18</A></TD>
<TD WIDTH="10%"><A HREF="19.html">19</A></TD>
<TD WIDTH="10%"><A HREF="20.html">20</A></TD>
<TD WIDTH="10%"><A HREF="21.html">21</A></TD>
<TD WIDTH="11%"><A HREF="22.html">22</A></TD>
</TR></TABLE>
</TR><TR VALIGN="center" ALIGN="center">
<!-- end tagnav ::::::::::::::::::::::::::::::::::::::::::::::::::::-->
<P> <hr> <P>
<!-- begin lgnav ::::::::::::::::::::::::::::::::::::::::::::::::::: -->
<A HREF="../index.html"
><IMG SRC="../../gx/indexnew.gif" ALT="[ Table Of Contents ]"></A>
<A HREF="../../index.html"
><IMG SRC="../../gx/homenew.gif" ALT="[ Front Page ]"></A>
<A HREF="../lg_bytes51.html"
><IMG SRC="../../gx/back2.gif" ALT="[ Previous Section ]"></A>
<A HREF="../../faq/index.html"
><IMG SRC="../../gx/dennis/faq.gif"
ALT="[ Linux Gazette FAQ ]"></A>
<A HREF="../lg_tips51.html"
><IMG SRC="../../gx/fwd.gif" ALT="[ Next Section ]"></A>
<!-- end lgnav ::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
<!-- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
</BODY></HTML>
<!--endcut ========================================================= -->