Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.2 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    Net::Telnet 3.03

    Download button

    No screenshots available
    Downloads: 1,332  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Good (3.0/5)
    11 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Jay Rogers | More programs
    Perl Artistic License / FREE
    February 14th, 2008, 14:05 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Net::Telnet description

    Net::Telnet can interact with TELNET port or other TCP ports.

    Net::Telnet can interact with TELNET port or other TCP ports.

    SYNOPSIS

    use Net::Telnet ();
    see METHODS section below

    Net::Telnet allows you to make client connections to a TCP port and do network I/O, especially to a port using the TELNET protocol. Simple I/O methods such as print, get, and getline are provided. More sophisticated interactive features are provided because connecting to a TELNET port ultimately means communicating with a program designed for human interaction. These interactive features include the ability to specify a time-out and to wait for patterns to appear in the input stream, such as the prompt from a shell.

    Other reasons to use this module than strictly with a TELNET port are:
    You're not familiar with sockets and you want a simple way to make client connections to TCP services.

    You want to be able to specify your own time-out while connecting, reading, or writing.

    You're communicating with an interactive program at the other end of some socket or pipe and you want to wait for certain patterns to appear.
    Here's an example that prints who's logged-on to the remote host sparky. In addition to a username and password, you must also know the user's shell prompt, which for this example is bash$

    use Net::Telnet ();
    $t = new Net::Telnet (Timeout => 10,
    Prompt => '/bash$ $/');
    $t->open("sparky");
    $t->login($username, $passwd);
    @lines = $t->cmd("who");
    print @lines;

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    TELNET port | TCP port | Perl module | TELNET | TCP | Perl

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM