Simple telnet-like access

J

John Deuf

Hi,
I'd like to use a module in Perl to connect to a remote server through
a Telnet like connection.

Something allowing to
- wait for "login" word, then send the "login" name
- then wait for "password" then entering my password
- then doing a few I/O with the server (commands / answers)

I never used a tcp-ip module in Perl

- what is the best module to use
- how to simply implement the telnet connectivity

Thank you

Regards

gg
 
L

lostriver

Hi,
I'd like to use a module in Perl to connect to a remote server through
a Telnet like connection.

The best 'telnet like' connection is SSH. Use Net::SSH::perl module to satisfy
your remote access needs.....
 
T

Tintin

John Deuf said:
Hi,
I'd like to use a module in Perl to connect to a remote server through
a Telnet like connection.

Something allowing to
- wait for "login" word, then send the "login" name
- then wait for "password" then entering my password
- then doing a few I/O with the server (commands / answers)

I never used a tcp-ip module in Perl

- what is the best module to use
- how to simply implement the telnet connectivity

Either use Net::Telnet or one of the Expect modules.
 
P

pkent

I'd like to use a module in Perl to connect to a remote server through
a Telnet like connection.

Something allowing to
- wait for "login" word, then send the "login" name
- then wait for "password" then entering my password
- then doing a few I/O with the server (commands / answers)

I never used a tcp-ip module in Perl

- what is the best module to use

I'd use Net::Telnet - the first example does exactly what you've said
you want to do:

http://search.cpan.org/~jrogers/Net-Telnet-3.03/lib/Net/Telnet.pm

P
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,143
Messages
2,570,822
Members
47,368
Latest member
michaelsmithh

Latest Threads

Top