Python for Unix and Linux System Administration

Front Cover
O'Reilly Germany, Dec 8, 2008 - Computers - 433 pages
3 Reviews

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.

  

What people are saying - Write a review

Review: Python for Unix and Linux System Administration

User Review  - Denis Kovalev - Goodreads

This book covers tips for integrating Python into every-day Linux shell tasks. It promotes IPython which is rather handy tool for solving math-related problems, introduces Python eggs, subprocesses ... Read full review

Contents

Chapter 1 Introduction
1
Chapter 2 IPython
21
Chapter 3 Text
71
Chapter 4 Documentation and Reporting
123
Chapter 5 Networking
147
Chapter 6 Data
177
Chapter 7 SNMP
205
Chapter 8 OS Soup
227
Chapter 10 Processes and Concurrency
289
Chapter 11 Building GUIs
323
Chapter 12 Data Persistence
357
Chapter 13 Command Line
387
Chapter 14 Pragmatic Examples
405
Appendix Callbacks
419
Index
423
Copyright

Chapter 9 Package Management
257

Common terms and phrases

About the author (2008)

Noah Gift is the co-author of Python For Unix and Linux by O'Reilly. He is an author, speaker, consultant, and community leader, writing for publications such as IBM Developerworks, Red Hat Magazine, O'Reilly, and MacTech, and Manning.

His consulting company is Giftcs, LLC and it provides solutions for Python Development and Systems Engineering. His personal website is www.noahgift.com. Noah is also the former organizer for PyAtl, which is the Python User Group for Atlanta, GA. He has given presentations at PyCon and PyAtl.

He has a Master's degree in CIS from Cal State Los Angeles, B.S. in Nutritional Science from Cal Poly San Luis Obispo, is an Apple ACSA and LPI certified SysAdmin, as well as a Avid Certified Support Representative. He has worked at companies such as, Caltech, Disney Feature Animation, Sony Imageworks, and Turner Studios, and Weta Digital. You can see all of his film credits at IMBD.

As a teenager he was a freelance television editor for ABC Network News. While at Caltech he worked for the Nobel Prize Winning President as a Mac Expert, and at Disney and Sony worked on the first feature animated films for both companies: Chicken Little, and Surf's Up, respectively. Recently he has worked on Python development projects as diverse as writing an SNMP auto-discovery system, writing a Content Management System from scratch, creating a large scale Web 2.0/Social Networking Application in Django for Turner Studios, to writing IPhone applications that talk to Google App Engine. He is also involved in a new media journalism project, Spotlight on FOSS, that had a kickoff interview of Mark Shuttleworth.

He is currently co-authoring a book on Google App Engine and writing a large Google App Engine Exercise and Nutrition Tracking Application. Most recently, he works as a Python programmer for Weta Digital in New Zealand, which has one of the world's largest render farms/super computer sites.

In his free time he enjoys spending time with his wife Leah, and their son Liam, and playing and composing piano music. He is also into exercising religiously, including running in and training for marathons, and blogging about it. When he gets a chance, he likes to write open source software. He is also interested in Artificial Intelligence research and software development.

Jeremy Jones is a software engineer/system administrator who works for Predictix. His weapon of choice is Python but he has done plenty of shell and Perl and a touch of Java.

He is the author of the open source projects Munkware, a multiproducer/multiconsumer, transactional, and persistent queuing mechanism, ediplex, an EDI (Electronic Data Interchange) parsing engine, and podgrabber a podcast downloader. All three projects were written in the Python language.

Jeremy spends his spare time enjoying his family and doing a little writing. He lives in Conyers, Georgia, just east of Atlanta, with his wife, Debra and his two children, Zane and Justus.