Chapter 14. Scripting and System Administration
Thus spake the master programmer: “Though a program be but three lines long, someday it will have to be maintained.”
—Geoffrey James, The Tao of Programming
Programmers often need to “glue” programs together with little scripts that talk to the operating system at a fairly high level and run external programs. This is especially true in the UNIX world, which daily relies on shell scripts for countless tasks.
For programmers already proficient in Ruby, it can be an extremely convenient way to create small, useful scripts. In fact, one of Matz’s original motivations when creating Ruby, inspired by Perl, was to make it easier to create small scripts to accomplish useful tasks.
In many cases, you might ...
Get The Ruby Way: Solutions and Techniques in Ruby Programming, Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.