Skip to content

优海

人,技术,生活。

  • 常用
  • 生活
  • 历史
  • 技术
  • 编程
  • 软件

Day: November 1, 2021

expect: The system has no more ptys

March 23, 2022November 1, 2021 by euhat

if executing command below yields: The system has no more ptys.

1
expect -c "spawn passwd root"

expect -c "spawn passwd root"

we can check whether /dev/ptmx exists, if not, just create it:

1
2
mknod /dev/ptmx c 5 2
chmod 666 /dev/ptmx

mknod /dev/ptmx c 5 2 chmod 666 /dev/ptmx

refer to:
https://www.linuxfromscratch.org/lfs/faq.html#no-ptys

Categories 技术 Tags expect, ptys
November 2021
M T W T F S S
1234567
891011121314
15161718192021
22232425262728
2930  
« Oct   Dec »

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Email:
euhat@hotmail.com
wolinux@163.com

鄂ICP备14020742号-1

Tags

Android bash c Chrome cmake debug dpdk epoll Euhat fedora ffmpeg gdb include ipsec jni kernel Linux mat MFC mp4 NDK ofp opencv openssl printf python qt Rtsp source StrongSwan tcp ubuntu UE4 vmware win32 Windows 命令行 失败 年表 控件 日语 源码 皇帝 禁止 编译
© 2025 优海 • Built with GeneratePress