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

.kermrc question (UNIX)

0 views
Skip to first unread message

Barry Tolnas

unread,
Nov 1, 1994, 1:56:06 PM11/1/94
to

In order to make my modem connect properly to one site, I have to set
an internal register in my modem. I would like this to be done
automatically in my .kermrc. Is there a way to send commands to my
modem? I didn't see a command listed in the docs which would do this.
The way I do it now is to manually type `c' to connect to the modem
and then type "ATS28=255" which sets the necessary register.

Thanks for any suggestions,

Barry
tol...@utk.edu

--
_____ ____ ____
/\ _ `. ' __,\ ',__.`
\ \ \_\ \ __ _ __ _ __ __ __ |
\ \ _ < /'__`\ /\`'__\/\`'__\/\ \/\ \ /
\ \ \_\ \/\ \_\.\_\ \ \/ \ \ \/ \ \ \_\ \ L_,
\ \____/\ \__/.\_\\ \_\ \ \_\ \/`____ \ ._______/
\/___/ \/__/\/_/ \/_/ \/_/ `/___/> \ ---
/\___/
\/__/

Jerry Alexandratos

unread,
Nov 1, 1994, 6:04:44 PM11/1/94
to
In article <TOLNAS.94...@microsys3.engr.utk.edu>,
Barry Tolnas <tol...@microsys3.engr.utk.edu> wrote:
:
:In order to make my modem connect properly to one site, I have to set

:an internal register in my modem. I would like this to be done
:automatically in my .kermrc. Is there a way to send commands to my
:modem? I didn't see a command listed in the docs which would do this.
:The way I do it now is to manually type `c' to connect to the modem
:and then type "ATS28=255" which sets the necessary register.
:
:Thanks for any suggestions,
:
:Barry
:tol...@utk.edu

[.sig deleted]

Yeah, just put the line `output ats28=255' in your .mykermit file.
This is documented in the book and and you can see examples of it in
any of the dialing scripts...

--Jerry

--
|> Jerry Alexandratos ** "vengo de la tierra del <|
|> dark...@strauss.udel.edu ** fuego ten cuidado cuando <|
|> dark...@canary.pearson.udel.edu ** llamas mi nombre..." <|

Jeffrey Altman

unread,
Nov 1, 1994, 7:56:10 PM11/1/94
to
>In order to make my modem connect properly to one site, I have to set
>an internal register in my modem. I would like this to be done
>automatically in my .kermrc. Is there a way to send commands to my
>modem? I didn't see a command listed in the docs which would do this.
>The way I do it now is to manually type `c' to connect to the modem
>and then type "ATS28=255" which sets the necessary register.
>

The best way to handle this is to use the built in dial commands:

you can either use "set dial init \13ATS28=255\13" or
"set dial dial-command \13ATS28=255DT%s\13"

move info about the dial commands in "Using C-Kermit"

Jeffrey Altman * PO Box 220415 * Great Neck, NY * 11022-0415 * (516) 466-5495
"C-Kermit: available on more platforms than any other communications software."
"Kermit FTP: sending files whenever and wherever they are needed."
*NEW* OS/2 version available: ftp kermit.columbia.edu /kermit/bin/ckoker.zip

Arcell B. Frazier

unread,
Nov 2, 1994, 2:01:46 AM11/2/94
to
Is there a way for C-Kermit to automatically know what line "/dev/whatever"
you are using upon startup?

Fast Cart
--

===============================================================================
Fast Cart (Arcell B. Frazier) Phone: (617)225-8945
500 Memorial Drive #372 "But, my friends call me Fast Cart...
Cambridge, MA 02139-4326 Well, at least I prefer that anyway!"
fast...@mit.edu

Barry Tolnas

unread,
Nov 2, 1994, 9:46:08 AM11/2/94
to
In article <FASTCART.9...@marinara.MIT.EDU> fast...@MIT.EDU (Arcell B. Frazier) writes:

> Is there a way for C-Kermit to automatically know what line "/dev/whatever"
> you are using upon startup?
>
> Fast Cart

set line /dev/whatever


Barry

Ken Pizzini

unread,
Nov 2, 1994, 3:06:39 PM11/2/94
to
In article <FASTCART.9...@marinara.mit.edu>,

Arcell B. Frazier <fast...@MIT.EDU> wrote:
>Is there a way for C-Kermit to automatically know what line "/dev/whatever"
>you are using upon startup?

I'm not sure I'm clear on your requirements -- does /dev/tty do what you want?

--Ken Pizzini

Craig Nordin

unread,
Nov 2, 1994, 3:28:01 PM11/2/94
to

Note the \v(ttyfd) variable. Is that what you are talking about?

Or are you just talking about "set line /dev/ttyp01" type commands?
If so, just dump it into your .kermrc

--------------------------- my .kermrc --------------------------------
set local off
set flow rts
set buffer 50000 50000
set win 0
set send pac 4096
set rec pac 4096
set window 3
set block 1
set file type bi
define rz !rz -e \%1 \%2 \%3 <&\v(ttyfd) >&\v(ttyfd)
define sz !sz -e \%1 \%2 \%3 <&\v(ttyfd) >&\v(ttyfd)
define sb !sb -e \%1 \%2 \%3 <&\v(ttyfd) >&\v(ttyfd)
define rb !rb -e \%1 \%2 \%3 <&\v(ttyfd) >&\v(ttyfd)
define sx !sx -e \%1 \%2 \%3 <&\v(ttyfd) >&\v(ttyfd)
define rx !rx -e \%1 \%2 \%3 <&\v(ttyfd) >&\v(ttyfd)

-----------------------------------------------------------------------


--

See the Emerald on the Matrix? Baltimore, Maryland Access to the Internet
That's Charm.Net Hon! E-Mail: in...@charm.net Voice:(410) 558.3900
http://www.charm.net/ "guest" login, no password Data:(410) 558.3300

Arcell B. Frazier

unread,
Nov 7, 1994, 3:45:31 PM11/7/94
to
In article <TOLNAS.94...@sun1.engr.utk.edu> tol...@sun1.engr.utk.edu (Barry Tolnas) writes:
> In article <FASTCART.9...@marinara.MIT.EDU> fast...@MIT.EDU (Arcell B. Frazier) writes:
>
> > Is there a way for C-Kermit to automatically know what line "/dev/whatever"
> > you are using upon startup?
> >
> > Fast Cart
>
> set line /dev/whatever
>
>
> Barry

But, "whatever" changes whenever I log in. Understand? I want something that
will know what line I'm using...

Arcell B. Frazier

unread,
Nov 7, 1994, 3:50:22 PM11/7/94
to
You wrote:

In article <398rgf$3...@news.halcyon.com> k...@coho.halcyon.com (Ken Pizzini) writes:
> Arcell B. Frazier <fast...@MIT.EDU> wrote:
> >Is there a way for C-Kermit to automatically know what line "/dev/whatever"
> >you are using upon startup?
>
> I'm not sure I'm clear on your requirements -- does /dev/tty do what you want?
>
> --Ken Pizzini

I found that on the C-kermit protocol we use, (from '89) /dev/tty is always
default at 1200 bps. I want to be able to "set line /dev/whatever" whenever I
start C-kermit because I'm not always using the same tty.

Joe Smith

unread,
Nov 11, 1994, 3:49:22 PM11/11/94
to
In article <FASTCART.9...@pesto.MIT.EDU> fast...@MIT.EDU (Arcell B. Frazier) writes:
>> I'm not sure I'm clear on your requirements -- does /dev/tty do what you want?
>
>I found that on the C-kermit protocol we use, (from '89) /dev/tty is always
>default at 1200 bps.

That is irrelevant. All I/O through /dev/tty goes as whatever speed you
logged in as. If you do not use "set line ...", then the speed reported
by "show com" is not applicable.
(noty/jms) jms@tardis% kermit
C-Kermit 5A(190), 4 Oct 94, for SunOS 4.1 (BSD)
Copyright (C) 1985, 1994,
Trustees of Columbia University in the City of New York.
Type ? or HELP for help.
C-Kermit>show com
Communications Parameters:
Line: /dev/tty, speed: 9600, mode: remote, modem: none
Parity: none, duplex: full, flow: xon/xoff, handshake: none

In reality, C-kermit should say "speed: not-applicable" since this is an
rlogin session and the effective baud rate is around 1 million bits per
second.

> I want to be able to "set line /dev/whatever" whenever I
>start C-kermit because I'm not always using the same tty.

Why? It won't make C-kermit run any faster. It already runs at the full
trasfer rate that the terminal driver is already using, even if C-kermit
is a bit confused and reports 1200 baud by mistake.

In summary, C-kermit reports a bogus number for the speed if no "set line"
command has been issued. Anyone who believes that number or tries to change
it is confused. The speed for /dev/tty is totally irrelevent for login
sessions that came in on TCP/IP, X.25, or anything else that uses the
pty interface to UNIX.

--
Joe Smith MCI Data Services, TYMNET Technical Support Services (Vnet 854)
<j...@tymnet.com> 2560 N 1st St, MS-F21, San Jose, CA 95131 (408)922-6220
CA license plate: "POPJ P," 36-bits forever! (4 Tymshare PDP-10s still going!)
Humorous disclaimer: "My Amiga 3000 speaks for me."

Arcell B. Frazier

unread,
Nov 13, 1994, 1:10:56 AM11/13/94
to
Ok. I'm confused then. Thanks.
0 new messages