Expert Shell Scripting
Everything you always wanted to know about shell scripting, but were afraid to ask
Samenvatting
System administrators need libraries of solutions that are ingenious but understandable. They don't want to reinvent the wheel, but they don't want to reinvent filesystem management either! Expert Shell Scripting is the ultimate resource for all working Linux, Unix, and OS X system administrators who would like to have short, succinct, and powerful shell implementations of tricky system scripting tasks.
- Automating small to medium system management tasks
- Analyzing system data and editing configuration files
- Scripting Linux, Unix, and OS X applications using bash, ksh, et al.
What you'll learn:
- Debug shell scripts using existing debuggers, not inspection.
- Use and extend text-editing one-liners and learn to forget Perl.
- Manage files and filesystems using scripting, not inflexible utilities.
- Use scripts to build complete Linux systems.
- Script X Window without getting lost in configuration files.
- Ignore Python, and script in bash and ksh instead.
Who is this book for?
System administrators who need solutions to everyday problems.
Specificaties
Inhoudsopgave
About the Technical Reviewer
Acknowledgments
Introduction
Part 1: Basic Scripting Techniques
1. Shell Script Debugging
2. Standard Function Library
3. Date and Time Manipulation
4. Comparisons and Tests
5. Accepting Command-Line Options, Switches, and Parameters
6. Testing Variables and Assigning Defaults
7. Indirect Reference Variables
8. Shell Process Tree
9. Data Redirection
10. Piping Input to read
Part 2: System Interaction and Advanced Techniques
11. Math from the Shell
12. cron
13. Self-Linked Scripts
14. Throttling Parallel Processes
15. Command-Line Editing and History
16. Scripting from the Command Line
17. Automating User Input with expect
18. User Input Timeout
19. Instant Keyboard Response
20. Directory Copying
21. A Brief Tour of the X Display Environment
22. X Navigation Window
23. Command-Line E-mail Attachments
24. Text-Processing One-Liners
25. Editing Files in Place
26. Evaluating Variables in a Flat File
27. Read Piped Input
28. Free-Format Output Using cat
29. Automating Interactive Processes
Part 3: Useful Scripts
30. Automating E-mail with procmail
31. Process-Management Monitor
32. Managing File Counts
33. Processes Running from inittab
34. Automatic RCS35 Colorful /proc Reporting
36. Password-Aging Notification
37. A Pseudo-shadow File
38. Linux Gold-System Build
39. System Snapshots
40. Removing Large Files and Log Rolling
41. Core Finder
42. Network Adapter Failover
Appendix A: Test Switches
Appendix B: Special Parameters
Appendix C: Other Shell-Scripting Resources
Index
Anderen die dit boek kochten, kochten ook
Net verschenen
Rubrieken
- aanbestedingsrecht
- aansprakelijkheids- en verzekeringsrecht
- accountancy
- algemeen juridisch
- arbeidsrecht
- bank- en effectenrecht
- bestuursrecht
- bouwrecht
- burgerlijk recht en procesrecht
- europees-internationaal recht
- fiscaal recht
- gezondheidsrecht
- insolventierecht
- intellectuele eigendom en ict-recht
- management
- mens en maatschappij
- milieu- en omgevingsrecht
- notarieel recht
- ondernemingsrecht
- pensioenrecht
- personen- en familierecht
- sociale zekerheidsrecht
- staatsrecht
- strafrecht en criminologie
- vastgoed- en huurrecht
- vreemdelingenrecht