expect the unexpected when scripting with expect....

On of my favorite tools I never get enough time to use is expect.  What is expect?  Expect is a scripting language that let's you automate responses to scripts or daemons and pretend to be a users.  So you can write a script to say update the passwords on all your systems with just one command.  Another way I am planning to use this in the very near future is to do MD5 Check Sums on a file and compare them.  If the files aren't then it will the re-copy over the files that are missing.  Over at linux-mag.com they have a great gettings started document you should check out to see if it can make your life easier.

Brian Wagner

Brian started working with *nix in while a student at Kent State University in the early 90's. In 1995, as an E-Mail Administrator for Caliber Technology (now part of Fedex) he was tasked with administering Sendmail on both Slackware Linux and Solaris Systems. His first home install of Linux was MkLinux DR1 in 1996 on his 60 Mhz PowerMac. Since then Brian has been working and consulting on Linux and it's uses in the Enterprise to support everything from E-Mail, Firewalls, Web and File serving to custom cluster solutions and grid solutions. Brian has had the opportunity to work in both Fortune 500 companies and small 2 person organizations. This has given him the unique insight into the differences every size business faces.