It runs fine outputting my current home dir.
Def a problem of it not giving back control to the script or something ??
$ssh->error and die "Couldn't establish SSH connection: " . $ssh->erro
$ssh->system('!bash') or die "remote command failed: " . $ssh->error;
# remote end will look like this after !bash
# [kburns@ssl01-d:Active] ~ #
print "will never print this line\n";
$ssh->system('pwd') or die "remote command failed: " . $ssh->error;
I was about to respond with why this was still a problem and then realized I can execute the vendors shell and it's commands from the legacy BSHELL.
These boxes (F5 LBs) have an older CLI Shell and a Newer one. To get into the newer one you would typically just run
!bash and then the 'tmsh' command. From there you could run the show commands (show ltm virtual, etc).
I never realized I could execute them right from the BSHELL like
B>!tmsh sho ltm virtual detail
Now I just need to figure out the capture part. Thanks a bunch. Hopefully you will be rid of me for now :)