社区
脚本语言
帖子详情
pexpect使用问题
solist
2014-02-25 03:09:14
现在使用pexpect远程ssh到另外一台服务器,用sendline执行 nohup tcpreplay -i eth0 -l 0 a.pcap &想要这个程序后台执行。 但是发现放pexpect结束,发包程序也结束了,请问如何实现后台发包运行呢
...全文
99
1
打赏
收藏
pexpect使用问题
现在使用pexpect远程ssh到另外一台服务器,用sendline执行 nohup tcpreplay -i eth0 -l 0 a.pcap &想要这个程序后台执行。 但是发现放pexpect结束,发包程序也结束了,请问如何实现后台发包运行呢
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
1 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
jeky_zhang2013
2014-02-25
打赏
举报
回复
pexpect用的不多,可用创建个子进程去发送信息,主进程等待子进程退出
pexpect
-3.3.tar.gz
Python 模块的代码,
pexpect
3.3.tar.gz ...........
pexpect
模块
很好的工具包
Python:
pexpect
模块下载
Python中的
pexpect
模块下载Python中的
pexpect
模块下载
pexpect
-2.3.tar.gz
Pexpect
makes Python a better tool for controlling other applications.
Pexpect
is a pure Python module for spawning child applications; controlling them; and responding to expected patterns in their output.
Pexpect
works like Don Libes' Expect.
Pexpect
allows your script to spawn a child application and control it as if a human were typing commands.
Pexpect
can be used for automating interactive applications such as ssh, ftp, passwd, telnet, etc. It can be used to a automate setup scripts for duplicating software package installations on different servers. It can be used for automated software testing.
Pexpect
is in the spirit of Don Libes' Expect, but
Pexpect
is pure Python. Unlike other Expect-like modules for Python,
Pexpect
does not require TCL or Expect nor does it require C extensions to be compiled. It should work on any platform that supports the standard Python pty module. The
Pexpect
interface was designed to be easy to use.
pexpect
-4.0.1
Pexpect
是一个用来启动子程序并对其进行自动控制的Python模块,它可以用来和像ssh,ftp,passwd,telnet等命令行程序进行自动交互。
脚本语言
37,743
社区成员
34,213
社区内容
发帖
与我相关
我的任务
脚本语言
JavaScript,VBScript,AngleScript,ActionScript,Shell,Perl,Ruby,Lua,Tcl,Scala,MaxScript 等脚本语言交流。
复制链接
扫一扫
分享
社区描述
JavaScript,VBScript,AngleScript,ActionScript,Shell,Perl,Ruby,Lua,Tcl,Scala,MaxScript 等脚本语言交流。
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
试试用AI创作助手写篇文章吧
+ 用AI写文章