Help for this page
Select Code to Download
Select
or
download this
$telnet = `telnet $hostname`; $output = $telnet->waitfor('/\$ $/i');