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!!
In reply to Re: Control::CLI and Additional Prompt At Login
by ImJustAFriend
in thread Control::CLI and Additional Prompt At Login
by ImJustAFriend
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |