Python for Unix and Linux System Administration by Noah Gift, Jeremy M. Jones

By Noah Gift, Jeremy M. Jones

Python is a perfect language for fixing difficulties, specifically in Linux and Unix networks. With this pragmatic publication, directors can evaluation a variety of projects that regularly take place within the administration of those platforms, and find out how Python grants a extra effective and no more painful technique to deal with them.

Each bankruptcy in Python for Unix and Linux process Administration provides a specific administrative factor, corresponding to concurrency or information backup, and provides Python ideas via hands-on examples. when you end this ebook, you'll be capable to strengthen your personal set of command-line utilities with Python to take on quite a lot of difficulties. notice how this language might help you:

• learn textual content documents and extract information
• Run projects at the same time utilizing the threading and forking options
• Get details from one procedure to a different utilizing community facilities
• Create clickable GUIs to address huge and intricate utilities
• visual display unit huge clusters of machines by way of interacting with SNMP programmatically
• grasp the IPython Interactive Python shell to switch or increase Bash, Korn, or Z-Shell
• combine Cloud Computing into your infrastructure, and learn how to write a Google App Engine Application
• resolve certain info backup demanding situations with custom-made scripts
• engage with MySQL, SQLite, Oracle, Postgres, Django ORM, and SQLAlchemy

With this e-book, you'll methods to package deal and install your Python functions and libraries, and write code that runs both good on a number of Unix systems. You'll additionally find out about a number of Python-related applied sciences that would make your existence a lot more straightforward.

Show description

Read or Download Python for Unix and Linux System Administration PDF

Best python books

Fundamentals of Python: From First Programs through Data Structures

In basics OF PYTHON: FROM FIRST courses via info buildings, Washington and Lee college professor Kenneth A. Lambert provides the entire very important themes in CS1 and CS2 in a single quantity. This reasonably-priced layout presents teachers with a constant method of instructing introductory programming and knowledge constructions over a customary two-term path series.

Python for Data Analysis: Data Wrangling with Pandas, NumPy, and IPython

Python for information research is worried with the nuts and bolts of manipulating, processing, cleansing, and crunching info in Python. it's also a realistic, sleek creation to clinical computing in Python, adapted for data-intensive purposes. it is a e-book concerning the components of the Python language and libraries you'll have to successfully clear up a wide set of knowledge research difficulties.

Python and AWS

In the event you intend to exploit Amazon internet prone (AWS) for distant computing and garage, Python is a perfect programming language for constructing purposes and controlling your cloud-based infrastructure. This cookbook will get you began with greater than dozen recipes for utilizing Python with AWS, in response to the author’s boto library.

Artificial Intelligence with Python

Construct real-world synthetic Intelligence functions with Python to intelligently have interaction with the area round you approximately This ebook Step into the superb global of clever apps utilizing this complete advisor input the realm of man-made Intelligence, discover it, and create your individual purposes paintings via easy but insightful examples that would get you up and working with synthetic Intelligence very quickly Who This ebook Is For This ebook is for Python builders who are looking to construct real-world man made Intelligence purposes.

Additional info for Python for Unix and Linux System Administration

Sample text

Py install). This will install the libraries for IPython in your site-packages directory and 22 | Chapter 2: IPython create an ipython script in your scripts directory. On UNIXes, this is typically the same directory that the python binary is located in. If you are using a python that was installed with your system’s package manager, it (and consequently ipython) will likely be located in /usr/bin. 3 in some examples. A second option for installing IPython is to use a package from your system’s package management system.

You know how to write a simple Python script, how to translate simple scripts from Bash and call them with Python, and, finally, how to find documentation about new modules and attributes. In the next section, you’ll see how to better organize these flat sequences of commands into functions. Using Functions in Python In the previous section we went through executing statements one after another, which is pretty useful, because it means we were able to automate something that we would normally have to do manually.

First, though, we need to review an IPython trick that we showed you before. Remember that you can use Tab to complete a module, and it will show you all of the attributes that are available to use. Here’s what that looks like: In [2]: pysysinfo_func_2. uname_func In this example, we can ignore anything with double underscores, because these are special methods that are beyond the scope of this introduction. pyc extension. disk_func. 1Gi 96% / 0Bi 100% /dev 0Bi 100% /dev 0Bi 100% /net 0Bi 100% /home /dev/disk1s2 /dev/disk2s3 298Gi 466Gi 105Gi 240Gi 193Gi 225Gi 36% 52% /Volumes/Backup /Volumes/EditingDrive You might have realized by now that functions are always “called” or run by attaching the “( )” after the name.

Download PDF sample

Rated 4.95 of 5 – based on 24 votes