Book description
Python is an ideal language for solving problems, especially in Linux and Unix networks. With this pragmatic book, administrators can review various tasks that often occur in the management of these systems, and learn how Python can provide a more efficient and less painful way to handle them.
Each chapter in Python for Unix and Linux System Administration presents a particular administrative issue, such as concurrency or data backup, and presents Python solutions through hands-on examples. Once you finish this book, you'll be able to develop your own set of command-line utilities with Python to tackle a wide range of problems. Discover how this language can help you:
- Read text files and extract information
- Run tasks concurrently using the threading and forking options
- Get information from one process to another using network facilities
- Create clickable GUIs to handle large and complex utilities
- Monitor large clusters of machines by interacting with SNMP programmatically
- Master the IPython Interactive Python shell to replace or augment Bash, Korn, or Z-Shell
- Integrate Cloud Computing into your infrastructure, and learn to write a Google App Engine Application
- Solve unique data backup challenges with customized scripts
- Interact with MySQL, SQLite, Oracle, Postgres, Django ORM, and SQLAlchemy
With this book, you'll learn how to package and deploy your Python applications and libraries, and write code that runs equally well on multiple Unix platforms. You'll also learn about several Python-related technologies that will make your life much easier.
Publisher resources
Table of contents
- Python for Unix and Linux System Administration
- Dedication
- A Note Regarding Supplemental Files
- Foreword
- Preface
- 1. Introduction
- 2. IPython
- 3. Text
- 4. Documentation and Reporting
- 5. Networking
-
6. Data
- Introduction
- Using the OS Module to Interact with Data
- Copying, Moving, Renaming, and Deleting Data
- Working with Paths, Directories, and Files
- Comparing Data
- Merging Data
- Pattern Matching Files and Directories
- Wrapping Up rsync
- Metadata: Data About Data
- Archiving, Compressing, Imaging, and Restoring
- Using tarfile Module to Create TAR Archives
- Using a tarfile Module to Examine the Contents of TAR Files
- 7. SNMP
- 8. OS Soup
-
9. Package Management
- Introduction
- Setuptools and Python Eggs
- Using easy_install
-
easy_install Advanced Features
- Search for Packages on a Web Page
- Install Source Distribution from URL
- Install Egg Located on Local or Network Filesystem
- Upgrading Packages
- Install an Unpacked Source Distribution in Current Working Directory
- Extract Source Distribution to Specified Directory
- Change Active Version of Package
- Changing Standalone .py File into egg
- Authenticating to a Password Protected Site
- Using Configuration Files
- Easy Install Advanced Features Summary
- Creating Eggs
- Entry Points and Console Scripts
- Registering a Package with the Python Package Index
- Distutils
- Buildout
- Using Buildout
- Developing with Buildout
- virtualenv
- EPM Package Manager
- 10. Processes and Concurrency
- 11. Building GUIs
- 12. Data Persistence
- 13. Command Line
- 14. Pragmatic Examples
- A. Callbacks
- Index
- About the Authors
- Colophon
- Copyright
Product information
- Title: Python for Unix and Linux System Administration
- Author(s):
- Release date: August 2008
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781449367183
You might also like
video
Linux Fundamentals
The second edition of this video title is available. Please go to Linux Fundamentals, 2nd Edition …
video
Linux Under the Hood
Over 9Hours of Video Instruction Description Learn all about Linux internals and how Linux really works. …
book
Efficient Linux at the Command Line
Take your Linux skills to the next level! Whether you're a system administrator, software developer, site …
book
UNIX and Linux System Administration Handbook, 5th Edition
UNIX and Linux System Administration Handbook, Fifth Edition is today’s definitive guide to installing, configuring and …