Автор: Randal K. Michael
Издательство: Wiley
Год: 2003
ISBN: 0471218219
Формат: pdf
Страниц: 704
Размер: 5 mb
Язык: English
This comprehensive book takes you step-by-step through the process of writing shell scripts to solve real-world Unix problems and tasks. Each chapter begins by presenting a typical Unix challenge that you'll most likely experience at your job. With each challenge, you'll learn how to identify a specific goal and start the shell script by defining the correct command syntax to solve the problem. You'll find out how to build the shell script around the commands, filter the commands output to strip out the unneeded data, and add options that give users more flexibility on the command line.
The approach used will teach you how to attack problems logically. It will also empower you to take the basic command syntax and turn it into a shell scripting solution.
Throughout the book, you'll find end-to-end shell scripts that you can use to automate repetitive tasks and solve real-world system administration problems. These tasks include:
* Communications such as automated event notification, monitoring processes locally and on remote systems, and automated FTP file transfers
* Information gathering and monitoring for file systems, paging/swap space, system load, applications, processes, and capturing the system's configuration
* Print queue management to keep the printers printing
* Floating point mathematics in shell scripts using the bc utility
The 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.