Rechercher une page de manuel
SatUtils::TelnetInterface.3pm
Langue: en
Version: 2007-10-15 (debian - 07/07/09)
Section: 3 (Bibliothèques de fonctions)
Sommaire
NAME
SatUtils::TelnetInterface - base class for telnet interfaced devicesDESCRIPTON
This is a base class for communication with devices that have a telnet based command-line interface.METHODS
- new
- Opens a connection to the device. Pass it the address of the device, the port to connect to, and regex to use to regognise the device's command prompt, and a regex to use to recognise the prompt.
Returns an object representing this connection.
- getoutput
- Get output of previous command until next prompt, and return it as one string.
- sendcommand
- Ensure we're at a prompt line, and send the passed command.
AUTHOR
Joey Hess <joey@kitenet.net>Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre