Operating System - HP-UX
1833845 Members
2229 Online
110063 Solutions
New Discussion

Re: Differences between "pts" and "ttyp"

 
Francisco Gazapo
Occasional Contributor

Differences between "pts" and "ttyp"

When I do a telnet connection the telnetd open a new pts. Why not a ttyp? I realy don't know what are the diferecies bettween ttyp and pts. Can I force telnetd to open a ttyp.

4 REPLIES 4
Bruce Regittko_1
Esteemed Contributor

Re: Differences between "pts" and "ttyp"

Hi,

Typically, the ttyp device files are used by serial devices such as modems and dumb terminals. The pts and pty device files are for pseudo terminals such as telnet, hpterm, xterm, dtterm, etc.

The difference between pts and pty is that pts is streams based.

--Bruce
www.stratech.com/training
Darrel Louis
Honored Contributor

Re: Differences between "pts" and "ttyp"

Hi,

The main difference between pts/x and ttypxx is that the pts files are streams based ptys. See pts(7) for a complete explanation.
The streams based ptys (pts/x) were introduced at hp-ux 10.20 and are used by rlogind at that release. At 11.0 streams based ptys are also
used by telnetd.

Test as follow:
When you use rlogin, to connect to a 10.20 system the device used is a pts, but when you use telnet it will be ttyp.

But on hp-ux 11.X it will be pts in both cases.

When you do the following on a hpux 11.X system:
1- hpterm -e remsh
- pty
/dev/pts/6
2- rlogin
who
# darrell pts/6 Dec 27 15:48
When you perform rlogin to a 10.20 system, the device will be
# darrell ttypc Dec 27 15:49

When you're connecting to a system with the TERM settings XTERM/HPTERM
Below a examples:
darrell 10542 10541 13 15:37:55 ttyp2 00:00 -sh
root 10541 1 12 15:37:54 ? 00:00 /usr/bin/X11/xterm -fn 6x13 -sb -ls -display 10.1.8.139:0
darrell 10588 10542 0 15:38:52 ttyp2 00:00 grep 10541


Also check the following man pages:
pts; ptm; tty; termio
CHRIS_ANORUO
Honored Contributor

Re: Differences between "pts" and "ttyp"

pts-Streams slave pty
tty-get the name of the terminal
When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.
Jim Leedham
New Member

Re: Differences between "pts" and "ttyp"

A follow on question.

I have been bitten by the change in behaviour in 11.0 noted above. I need to have the connection come in as a ttyp, because a legacy application - still running from 9.x looks for tty type devices, and does not see pts type devices. Had to change from rlogin to telnet going from 9.x to 10.x...now what can we do?

Thanks