亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

using Net::SSH2 shell 的二個方法

 更新時間:2013年02月09日 21:30:49   作者:  
using Net::SSH2 shell 的二個方法,供大家參考

方法一:

復(fù)制代碼 代碼如下:

$chan2 = $ssh2->channel();
$chan2->blocking(0);
print $chan2 "tail -5 /var/log/authlog\n";
print "**$_" while <$chan2>;

方法二:

復(fù)制代碼 代碼如下:

#shell use
my $chan2 = $ssh2->channel();
$chan2->shell();
print $chan2 "uname -a\n";
print "LINE : $_" while <$chan2>;
print $chan2 "who\n";
print "LINE : $_" while <$chan2>;
$chan2->close;

相關(guān)文章

最新評論