I need to write a bunch of scripts to grab diagnostic data from customer environments where our product is installed. Troubleshooting data I need comes various sources including Oracle database, PowerShell commands, WMI, Registry, Windows commands such as netstat, our own property files, log files etc. The results will go into HTML pages, which in turn will be zipped emailed out/FTPed by the script.
Which language is the most suited for this purpose? Python, Ruby or something else? I am new to both Python and Ruby.
Ruby’s type system is much simpler and cleaner and allows a smaller and simpler language core. And, you write scripts that don’t look like OOP in Ruby just as easily because the default “global” namespace is the body of a default “main” object, which just implements all the usual imperative functions like print, gets, eval, etc.
Ruby also allows you to write scripts that don’t really look like you’re using objects.
Ruby people complain about Python’s lack of blocks, the difficulty of doing dynamic code generation, the awkwardness of trying to modify existing classes. They complain about these things
You Can Also Check This Link