Net::C...:Telnet(3pm)

πŸ“¦
version 2.400002 Β· 6 versions
, in debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ¦‹ NAME πŸ¦‹

Net::CLI::Interact::Transport::Telnet β€” a TELNET-based CLI connection, bestie. Yes it's a whole module, and yes you're gonna understand it, fr fr.

This is Net::C...:Telnet(3pm) and honestly? It's giving "quietly essential infrastructure" πŸ’…


✨ DESCRIPTION ✨

Okay so listen. This module hands you a wrapped instance of a TELNET client β€” like, pre-packaged, ready to go β€” for Net::CLI::Interact to use. That's it. That's the whole vibe. It's the little middleman that makes TELNET connections happen so you don't have to ✨


🫢 INTERFACE 🫢

πŸ’– app

So on Windows platforms you have to go download the plink.exe program yourself (annoying, I know 😭) and pass its location into the library using this parameter. On every other platform? It just defaults to telnet. Slay. No extra work for you πŸ’…

🌸 runtime_options

Here's the tea: based on the connect_options hash that got handed to Net::CLI::Interact when it was constructed, this thing picks out and formats the parameters it's gonna feed to app on the command line. Here's everything it supports:

  • host (required) β€” the host name or IP address of the host that the TELNET application is gonna connect to. Required, bestie, don't skip it πŸ‘‘
  • port β€” the port number on the host that's listening for the TELNET connection. Defaults to 23. Iconic default energy πŸŽ€
  • opts β€” got extra options you wanna pass to the Telnet application? Drop them here, and it should be an array reference. Now listen, because the details matter:
    • On Windows platforms, each item on the list gets passed to the plink.exe application, separated by a single space character.
    • On Unix platforms, it depends on whether you have IO::Pty installed β€” which in turn depends on whether you have a compiler. Yeah. A compiler. 🫠
    • Typically, the Net::Telnet library is what's used for TELNET connections, so the list can be any options taken by its new() constructor. Otherwise, the local telnet application is used instead.
  • reap β€” only used on Unix platforms. This installs a signal handler which attempts to reap the ssh child process. Pass a true value to enable this feature only if you notice zombie processes are being left behind after use. Like, actual zombies. In your process table. Spooky πŸ’€ Only turn it on if you're seeing them, okay?

🌈 COMPOSITION 🌈

Want more interface details? Go check these out, bestie:

  • Net::CLI::Interact::Transport::Base

That's the whole page, no cap. Written by the Perl documentation girlies, running on perl v5.36.0 and dated 2023-10-28 β€” periodt. Go make some TELNET connections, you've got this πŸ¦‹βœ¨πŸ’–

πŸ“¦ where this page comes from