Summary

Relax, there's no homework today. But the scripts in this chapter might serve as jumping-off points for new projects. One idea you might consider is a crossword puzzle assistant that uses ispell (or a dictionary file) to find possible completions for words.

% ruby xword-assist.rb r_bbl_
rabble
rubble

Like many system administration scripts, kill-slackers was built to do a specific job in a specific environment; this will also prevent you from testing it directly. If you want to adapt it for another use, be sure to examine the raw output of your system's ps and who commands closely and make any necessary adjustments. You might find the w command useful in FreeBSD, or who with the -i and -l flags in Linux.

If system administration work ...

Get Sams Teach Yourself Ruby in 21 Days 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.