$telnet->waitfor('/:/'); $telnet->print($username); $telnet->waitfor('/:/'); $telnet->cmd($password);