Mastering Unix Shell Scripting
- Provides readers with end-to-end shell scripts that can be used to automate repetitive tasks and solve real-world system administration problems
- Targets the specific command structure for four popular UNIX systems: Solaris, Linux, AIX, and HP-UX
- Illustrates dozens of example tasks, presenting the proper command syntax and analyzing the performance gain or loss using various control structure techniques
- Web site includes all the shell scripts used in the book
Scripting Quick Start and Review.
Twelve Ways to Process a File Line by Line.
Automated Event Notification.
Progress Indicator Using a Series of Dots, a Rotating Line, or a Countdown to Zero.
File System Monitoring.
Monitoring Paging and Swap Space.
Monitoring System Load.
Process Monitoring and Enabling Preprocess, Startup, and Postprocess Events.
Monitoring Processes and Applications.
Creating Pseudo-Random Passwords.
Monitor for Stale Disk Partitions.
Automated Hosts Pinging with Notification.
Taking a System Snapshot
Compiling, Installing, Configuring, and Using sudo.
hgrep: Highlighted grep Script.
Print Queue Hell: Keeping the Printers Printing.
Automated FTP Stuff.
Finding "Large" Files.
Monitoring and Auditing User Key Strokes.
Turning On/Off SSA Identification Lights.
Pseudo-Random Number Generation.
Floating-Point Math and the bc Utility.
Scripts for Number Base Conversions.
Menu Program Suitable for Operations Staff.
Sending Pop-Up Messages from Unix to Windows.
Appendix A: What's on the Web Site.