SatUtils::TelnetInterface3pm
Base class for telnet interfaced devices
Descripton
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.
Releases
3 releases since Debian 4.0 (Etch); the text changed 1 time.