$telnet->waitfor('/$device# /i'); ##wait for prompt