免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12
最近访问板块 发新帖
楼主: nathanisl
打印 上一主题 下一主题

用perl能捕获屏幕输出吗? [复制链接]

论坛徽章:
0
11 [报告]
发表于 2011-01-11 09:56 |只看该作者
回复  nathanisl


    my @database =  $telnet->cmd('show databases;');
返回的就是命令输出
jiwang1980 发表于 2011-01-10 22:32


我用這個是可以的.

论坛徽章:
0
12 [报告]
发表于 2011-01-11 12:23 |只看该作者
script是perl命令吗?没用过,哪儿有介绍?

回复 10# dibug

论坛徽章:
0
13 [报告]
发表于 2011-01-18 13:51 |只看该作者
IO:ty可以实现

论坛徽章:
1
2015亚冠之塔什干火车头
日期:2015-07-13 12:36:28
14 [报告]
发表于 2011-01-20 17:39 |只看该作者
不知道这两个能不能解决楼主的问题呢?input_log()、dump_log()

"dump_log()" allows you to see the data being sent from the remote side before any translation is done, while "input_log()" shows you the results after translation.  The translation includes converting end of line characters,removing and responding to TELNET protocol commands in the data stream.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP