UNIX expert Randal K. Michael guides you through every detail of writing shell scripts to automate specific tasks. Each chapter begins with a typical, everyday UNIX challenge, then shows you how to take basic syntax and turn it into a shell scripting solution. Covering Bash, Bourne, and Korn shell scripting, this updated edition provides complete shell scripts plus detailed descriptions of each part. UNIX programmers and system administrators can tailor these to build tools that monitor for specific system events and situations, building solid UNIX shell scripting skills to solve real-world system administration problems.
The author starts with an example task, presents proper command syntax, and then analyzes the performance gain or loss using various control structure tech-niques. Topics covered include: UNIX and shell scripting basics; and automation of communications (event notification, network communications, monitoring, remote systems, error notification, pop up end-user alerts.
Learn to create shell scripts to solve real-world UNIX problems
Get ready to take on the UNIX world! UNIX expert Randal K. Michael guides you through every detail of writing shell scripts to automate specific tasks. Each chapter begins with a typical, everyday UNIX challenge, and then shows you how to take basic syntax and turn it into a shell scripting solution. Throughout the book, you'll also find complete shell scripts plus detailed descriptions of each part. You'll be able to modify this information to build tools that monitor for specific system events and situations, building the skills to solve real-world system administration problems.
Make the most of Bash, Bourne, and Korn shells
Execute the proper commands for eachUNIX flavor
Define the correct command syntax to meet a specific shell scripting goal
Filter the commands' output to strip out unneeded data
Build options into the shell script to give the end user more flexibility on the command line
Replicate data using rsync
Create snapshot-style backups using Dirvish
Work with records files to parse data
Prepare for government audits using specific commands
UNIX expert Randal K. Michael guides you through every detail of writing shell scripts to automate specific tasks. Each chapter begins with a typical, everyday UNIX challenge, then shows you how to take basic syntax and turn it into a shell scripting solution. Covering Bash, Bourne, and Korn shell scripting, this updated edition provides complete shell scripts plus detailed descriptions of each part. UNIX programmers and system administrators can tailor these to build tools that monitor for specific system events and situations, building solid UNIX shell scripting skills to solve real-world system administration problems.