Skip to content

优海

人,技术,生活。

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

expect

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
June 2025
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
30  
« Apr    

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