in reply to Control::CLI and Additional Prompt At Login
I figured out quite an easy fix for this a while after posting. Numerous rounds of testing have proven it out. I asked for the extra prompt to be changed from "ID:" to "ID>". This made my code think the login was all good. From there, I added code (through trial and error) to handle the extra prompt after the code block in my original message, like so:
$port = $cli->port; if ( defined($port) ) { print "\tSSH connection to server ($host) established!\n"; } else { print "\tSSH connection to server ($host) could not be established +... Exiting program.\n"; exit; } $output = $cli->cmd(""); $output = $cli->cmd("IJAF"); $output = $cli->cmd("clear"); $output = "";
Thanks as usual, Monks!!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Control::CLI and Additional Prompt At Login
by lgas (Acolyte) on Sep 14, 2014 at 12:13 UTC |