[QNX]telnetd: All network ports in use.

/*********************************************************************
* Author          :     lile
* Modified        :     2019年12月28日星期六  10:56:13
* Email           :     roger0212@163.com
* HomePage        :     lile777.blog.csdn.net
* CopyRight       :     该文章版权由lile所有。
*                       保留原文出处链接和本声明的前提下,可在非商业目的下任意传播和复制。
*                       对于商业目的下对本文的任何行为需经作者同意。
*********************************************************************/

telnetd 需要用到 /dev/ttyp0, 请确保 devc-pty 服务已经开启

运行 devc-pty -n5 & 后查看设备节点如下

# ls -l /dev/tt*
crw-rw-rw-  1 root      0            1,   2 Dec 12 15:24 /dev/tty
crw--w----  1 root      0            7,   0 Dec 12 15:24 /dev/ttyp0
crw-rw-rw-  1 root      0            7,   1 Dec 12 15:24 /dev/ttyp1
crw-rw-rw-  1 root      0            7,   2 Dec 12 15:24 /dev/ttyp2
crw-rw-rw-  1 root      0            7,   3 Dec 12 15:24 /dev/ttyp3
crw-rw-rw-  1 root      0            7,   4 Dec 12 15:24 /dev/ttyp4
# 

再次远程 telnetd 即可成功运行

QNX Neutrino (localhost) (ttyp0)

# ls -l 

devc-pty
Pseudo-tty communications manager (QNX Neutrino)


--------------------------------------------------------------------------------
 Note  You must be root to start this manager. 

Syntax:
devc-pty [options] &Runs on:
Neutrino

Options:
-C size 
Specify the size of the canonical buffer in bytes (default 256). 
-I size 
Size of input buffer in bytes (default 256). 
-n numptys 
Create numptys ptys (default 8). 
-O size 
Size of output buffer in bytes (default 3 × 512). 
-o nodaemon 
Don't call procmgr_daemon() to make the driver run in the background. Use this option if you need to know when the devc-pty device terminates. 


Description:
The devc-pty manager is a small pseudo-tty manager for QNX Neutrino. It can support up to 256 ptys, using the naming scheme: 

pty[p-zP-T][0-9a-f] for the master device 
tty[p-zP-T][0-9a-f] for the slave device 

The master and slave device pair share the same letter and hexadecimal digit.

Examples:
Start devc-pty with 32 ptys:

devc-pty -n 32 &

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值