Wiley
Wiley.com
Print this page Share

Mastering Unix Shell Scripting

ISBN: 978-0-471-21821-0
704 pages
February 2003
Mastering Unix Shell Scripting (0471218219) cover image
  • 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
See More
Acknowledgments.

Introduction.

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.

Index.

See More
RANDAL K. MICHAEL is a Unix Systems Administrator at Coca-Cola Enterprises, Inc., where he writes shell scripts to address complex monitoring and event notification issues. He has more than 23 years of industry experience and 10 years of experience as a Unix Systems Administrator, working with Solaris, Linux, AIX, and HP-UX.
See More
http://www.samba.org/samba Download the latest version of Samba.
http://www.courtesan.com/sudo Download the latest version of SUDO.
http://www.kornshell.com/ Home Page For The KornShell Command And Programming Language .
See More
Download TitleSizeDownload
Download the scripts content in rar format

You will need to download and uncompress the files below. To use the files compressed using the RAR format you can download the RAR command line utility from www.rarlabs.com

49.68 KB Click to Download
Download the scripts content in zip format

You will need to download and uncompress the files below. To use the files compressed using the RAR format you can download the RAR command line utility from www.winzip.com

130.68 KB Click to Download
Download the functions content in rar format 9.32 KB Click to Download
Download the functions content in zip format 13.23 KB Click to Download
Download both directories in one file in rar format 54.87 KB Click to Download
Download both directories in one file in zip format 143.89 KB Click to Download
See More
Companion Site

This Web site contains all of the Korn shell scripts and functions that we studied in the book. Some of these shell scripts must be edited for your particular environment, while others are ready to run as soon as you download them and change the file permissions. Please read the disclaimer for these shell scripts and functions because neither the Author, Randal K. Michael, nor Wiley make any representations or warranties with respect to the accuracy or completeness of the contents of this work and specifically disclaim all warranties, including without limitation warranties of fitness for a particular purpose, including any actions that may result from using these shell scripts or functions, either in part of in whole.

Mastering UNIX Shell Scripting was written to be a learning experience for problem resolution using a Korn shell scripting techniques. I hope that any problem that you encounter on your systems is now an intuitively obvious problem to solve. Feel free to modify the downloaded shell scripts to suit your needs. In the book there a many tasks that are left for you to resolve by modify the code in the script. As a general rule, it is a good idea to always make a backup copy of the file before you do any editing. This way you will always have the original code to revert back to in case of a programming error. This companion Web site contains all of the shell scripts and most of the functions that are discussed in the book as well as bonus shell scripts for various tasks.

See More

Related Titles

Back to Top