Telnet cmd, parse output, and switch statement

I have several scripts that I use to telnet to hosts and reach out and
grab certain data. I’d like to consolidate some of these scripts by
running a command, looking for a specific string via regex, and then
based on the match, go to 1 of X cases in a switch statement. For those
that are more experienced with Ruby, is this pretty easy to do or would
you suggest something other than Ruby and Net::Telnet?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs