The O’Reilly Network has published a guide for using the Tool Command Language and Expect, an extension of TCL, with Mac OS X. TCL is a very flexible scripting language that can be used to test network hardware.