2014-12-11 9 views

답변

1

do $ssh->enablePTY(). 이 참조 : 출력이 의미를 많이하지 않습니다 않도록 당신이해야

http://phpseclib.sourceforge.net/ssh/pty.html#top

참고, File_ANSI()의 사용을 할 수 있습니다. 예.

$ssh->enablePTY(); 
$ssh->exec('top'); 
$ssh->setTimeout(5); 
$ansi->appendString($ssh->read()); 
echo $ansi->getScreen();