use Net::Telnet; $telnet->open('godavari.bec.ge.com'); $telnet->login ('anand','anand'); $telnet->waitfor('/\$ $/i'); $telnet->cmd("./EJS1.3.7.0/ejs/solaris/setup -console"); $telnet->waitfor('/ Continue $/i') or die "Can't find enter to continue", $telnet->lastline; $telnet->print(''); $telnet->close; exit;