From: R. Stewart Ellis (ellis@nova.gmi.edu)
Date: 09/29/93


From: ellis@nova.gmi.edu (R. Stewart Ellis)
Subject: Re: term?
Date: 29 Sep 1993 12:54:21 GMT

cwil4@cs.aukuni.ac.nz (Craig Ashcroft Willmott ) writes:

>In <ellis.749266741@nova> ellis@nova.gmi.edu (R. Stewart Ellis) writes:

>>This is like saying a Ferrari is a wagon (they both have wheels and someone
>>can ride in both). Term allows you to set up a socket over a modem

[delete]

>I'm also a newcomer to the Linux world, I've had it installed for five
>days now, and a lot of that has been spent on Kermit and term.
>What I want to do is attach a socket at uni to a socket on linux, or
>more specifically, to a login prompt.

>I've got term going fine, so that I can trsh back and forth. Then I tried
>to use tredir to connect the sockets setup. So from uni I did
> tredir 12345 23
>thinking that this should attach the remote port 12345 to my telnet
>port. Also I tried 12345 by itself, hoping it would just create a login.
>When trying to connect from uni, (telnet <local> 12345) I get
>a connection but then nothing happens. Is there something wrong with
>my telnet connection? It works just fine when I telnet localhost 23
>from home.

Here is the screen output from my doing what you are trying. I am at home
on solo. The remote machine is nova, my campus Sun 4/690 running SunOS
4.1.3.

solo_bstew> trsh
Remote: term 1.0.7
tty /dev/ttype. Exec /faculty/ellis/bin/sun4/tcsh
In cshrc
resize: No `co#'
[1](ttype)_nova_ellis_~/> tredir 2323 23
Redirecting 2323 to 23
[2](ttype)_nova_ellis_~/> telnet nova 2323
Trying 192.138.137.2 ...
Connected to nova.
Escape character is '^]'.

UNIX(r) System V Release 4.0 (solo)

login: bstew
Last login: Sun Sep 26 19:33:48 on console
solo:/usr2/stew>

Here I am tearing down the connection:

[4](ttype)_nova_ellis_~/> ps -auxww |grep tredir
ellis 20150 0.0 0.2 32 204 pe S 08:57 0:00 grep tredir
ellis 20023 0.0 0.0 32 0 ? IW 08:52 0:00 tredir 2323 23
[5](ttype)_nova_ellis_~/> kill -9 20023
[6](ttype)_nova_ellis_~/> ps -auxww | grep tredir
ellis 20158 0.0 0.2 32 204 pe S 08:58 0:00 grep tredir
[7](ttype)_nova_ellis_~/> exit
solo_bstew>

tredir scare the crap out of me.

>Also, when I trsh back into linux, some characters (in particular line
>feeds) don't get through. According to the man, I can set up my
>~.term/termrc file to escape these characters. How do you do that?
>Is termrc executed before an rsh is set up or what?
>Also, after I run tredir, my trsh dies (freezes). Is this supposed
>to happen?

There are a couple of gotchas:
1) Make sure the termrc on one and only one end has the word remote in it.
2) Run linecheck and put the recommendations on both ends (most people say
just the other end, but it does not hurt to be conservative here). If
linecheck does not tell you to escape CR/LF then look at your inittab,
gettytab or wherever you set up logins on Linux. Follow the examples in the
includede termrc.

-- 
  R.Stewart(Stew) Ellis, Assoc.Prof., (Off)313-762-9765   ___________________
  Humanities & Social Science,  GMI Eng.& Mgmt. Inst.    /   _____  ______ 
  Flint, MI 48504      ellis@nova.gmi.edu               /        / /  /  / /
  Gopher,News and sendmail maintainer, all around hack /________/ /  /  / /