(Ebook) Python for Unix and Linux System Administration by Noah Gift, Jeremy Jones ISBN 9780596515829, 0596515820 - The ebook in PDF format is ready for immediate access
(Ebook) Python for Unix and Linux System Administration by Noah Gift, Jeremy Jones ISBN 9780596515829, 0596515820 - The ebook in PDF format is ready for immediate access
https://ebooknice.com/product/biota-grow-2c-gather-2c-cook-6661374
https://ebooknice.com/product/automating-linux-and-unix-system-
administration-23137568
https://ebooknice.com/product/unix-and-linux-system-administration-
handbook-4th-edition-2010-3203244
https://ebooknice.com/product/automating-linux-and-unix-system-
administration-22052548
(Ebook) UNIX and Linux System Administration Handbook by Evi Nemeth,
Garth Snyder, Trent R. Hein, Ben Whaley, Dan Mackin ISBN
9780134277554, 0134277554
https://ebooknice.com/product/unix-and-linux-system-administration-
handbook-6721792
https://ebooknice.com/product/unix-and-linux-system-administration-
handbook-fourth-edition-52556386
https://ebooknice.com/product/linux-introduce-to-beginners-guide-unix-
operating-system-linux-shell-scripting-and-command-line-linux-
system-43317364
https://ebooknice.com/product/tru64-unix-system-administration-943854
https://ebooknice.com/product/sat-ii-success-
math-1c-and-2c-2002-peterson-s-sat-ii-success-1722018
Python for Unix and Linux System
Administration
Other resources from O’Reilly
Related titles Essential System Mac OS X for Unix Geeks
Administration Programming Python
Learning Python Python Cookbook
Linux Networking Python in a Nutshell
Cookbook Unix in a Nutshell
Linux Security Cookbook
Administration
The Definitive Guide
NoahBrittain
Jason Gift and Jeremy
and Ian F.M. Jones
Darwin
Copyright © 2008 Noah Gift and Jeremy M. Jones. All rights reserved.
Printed in the United States of America.
Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472.
O’Reilly books may be purchased for educational, business, or sales promotional use. Online editions
are also available for most titles (http://safari.oreilly.com). For more information, contact our corporate/
institutional sales department: (800) 998-9938 or [email protected].
Printing History:
August 2008: First Edition.
Nutshell Handbook, the Nutshell Handbook logo, and the O’Reilly logo are registered trademarks of
O’Reilly Media, Inc. Python for Unix and Linux System Administration, the image of a boa constrictor,
and related trade dress are trademarks of O’Reilly Media, Inc.
Many of the designations used by manufacturers and sellers to distinguish their products are claimed as
trademarks. Where those designations appear in this book, and O’Reilly Media, Inc. was aware of a
trademark claim, the designations have been printed in caps or initial caps.
While every precaution has been taken in the preparation of this book, the publisher and authors assume
no responsibility for errors or omissions, or for damages resulting from the use of the information con-
tained herein.
ISBN: 978-0-596-51582-9
[M]
1218651032
I dedicate this book to Dr. Joseph E. Bogen,
my mom, and my wife, Leah—three people who
have loved me and believed in me when it counted
the most.
—Noah
I dedicate this book to my wife, Debra, and my
children, Zane and Justus. You encouraged me,
bore with me with great patience, and gave me
many smiles along the journey of writing this
book. This book is as much yours as it is mine.
—Jeremy
Table of Contents
Foreword . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xi
Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiii
1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Why Python? 1
Motivation 6
The Basics 8
Executing Statements in Python 8
Using Functions in Python 12
Reusing Code with the Import Statement 16
2. IPython . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Installing IPython 22
Basic Concepts 23
Help with Magic Functions 30
Unix Shell 34
Information Gathering 51
Automation and Shortcuts 64
Summary 69
3. Text . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
Python Built-ins and Modules 71
Log Parsing 110
ElementTree 116
Summary 120
vii
Information Distribution 141
Summary 145
5. Networking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147
Network Clients 147
Remote Procedure Call Facilities 158
SSH 164
Twisted 167
Scapy 173
Creating Scripts with Scapy 175
6. Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177
Introduction 177
Using the OS Module to Interact with Data 178
Copying, Moving, Renaming, and Deleting Data 179
Working with Paths, Directories, and Files 181
Comparing Data 185
Merging Data 187
Pattern Matching Files and Directories 193
Wrapping Up rsync 195
Metadata: Data About Data 197
Archiving, Compressing, Imaging, and Restoring 199
Using tarfile Module to Create TAR Archives 199
Using a tarfile Module to Examine the Contents of TAR Files 201
7. SNMP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205
Introduction 205
Brief Introduction to SNMP 205
IPython and Net-SNMP 208
Discovering a Data Center 211
Retrieving Multiple-Values with Net-SNMP 214
Creating Hybrid SNMP Tools 220
Extending Net-SNMP 222
SNMP Device Control 224
Enterprise SNMP Integration with Zenoss 225
8. OS Soup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 227
Introduction 227
Cross-Platform Unix Programming in Python 228
PyInotify 238
OS X 240
Red Hat Linux Systems Administration 245
Ubuntu Administration 245
Table of Contents | ix
Relational Serialization 376
Summary 385
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 423
x | Table of Contents
Foreword
I was excited to preview this book on using Python for system administration. I
remembered how I felt when I discovered Python after many years of programming in
other languages: it was like a breath of spring air and the warmth of the sun after a long
winter indoors. Code was suddenly easy and fun to write again, and I finished programs
much more quickly than before.
As a system administrator, most of my own Python use is for system and network
management tasks. I already knew how useful a good book focusing on system ad-
ministration with Python would be. I am happy to say that this is that book. Overall,
Noah and Jeremy have created an interesting, intelligent work on Python that is planted
firmly in the system administration sphere. I found the book both very useful and en-
joyable to read.
The two opening chapters are a great introduction to Python for system administrators
(and others) who are new to Python. I consider myself an intermediate Python pro-
grammer, and I learned a lot from the book. I suspect even Python wizards will come
across a few new tricks in here. I can especially recommend the chapters on networking
and managing network services, SNMP, and management of heterogeneous systems as
particularly useful and well focused on nontrivial, real-world tasks that system admin-
istrators face every day.
—Æleen Frisch, July 2008
xi
Preface
xiii
books does require permission. Answering a question by citing this book and quoting
example code does not require permission; incorporating a significant amount of ex-
ample code from this book into your product’s documentation does require permission.
We appreciate, but do not require, attribution. An attribution usually includes the title,
author, publisher, and ISBN, for example: “Python for Unix and Linux System Admin-
istration by Noah Gift and Jeremy M. Jones. Copyright 2008 Noah Gift and Jeremy M.
Jones, 978-0-596-51582-9.”
If you feel your use of code examples falls outside fair use or the permission given above,
feel free to contact us at [email protected].
How to Contact Us
Please address comments and questions concerning this book to the publisher:
O’Reilly Media, Inc.
1005 Gravenstein Highway North
Sebastopol, CA 95472
800-998-9938 (in the United States or Canada)
707-829-0515 (international or local)
707-829-0104 (fax)
We have a web page for this book, where we list errata, examples, and any additional
information. You can access this page at:
http://www.oreilly.com/9780596515829
To comment or ask technical questions about this book, send email to:
[email protected]
For more information about our books, conferences, Resource Centers, and the
O’Reilly Network, see our website at:
http://www.oreilly.com
xiv | Preface
Acknowledgments
Noah’s Acknowledgments
As I sit writing an acknowledgment for this book, I have to first mention Dr. Joseph E.
Bogen, because he made the single largest impact on me, at a time that it mattered the
most. I met Dr. Bogen while I was working at Caltech, and he opened my eyes to another
world giving me advice on life, psychology, neuroscience, math, the scientific study of
consciousness, and much more. He was the smartest person I ever met, and was some-
one I loved. I am going to write a book about this experience someday, and I am sad-
dened that he won’t be there to read it, his death was a big loss.
I want to thank my wife, Leah, who has been one of the best things to happen to me,
ever. Without your love and support, I never could have written this book. You have
the patience of a saint. I am looking forward to going where this journey takes us, and
I love you. I also want to thank my son, Liam, who is one and a half, for being patient
with me while I wrote this book. I had to cut many of our guitar, piano, and pushup
lessons short, so I owe you payback times two, little goat.
To my mom, I love you, and thank you for encouraging me throughout life.
Of course, I want to thank Jeremy M. Jones, my coauthor, for agreeing to write this
book with me. I think we were a great team with different, but complementary styles,
and we wrote a great book. You have taught me a lot about Python, and have been a
good partner and friend. Thanks!
Titus Brown, whom I suppose I have to call Dr. Brown now, was the person that got
me interested in Python to begin with, when I met him at Caltech. He is another ex-
ample of how one person can make a difference, and I am glad to consider him an “old”
friend, the kind money can’t buy. He kept asking me, “Why don’t you use Python?”
And then one day I did. If it wasn’t for Titus, I would certainly have continued down
the Java and Perl path. You can read his blog here: http://ivory.idyll.org/blog.
Shannon Behrens has a heart of solid gold, a mind as sharp as a razor, and a knowledge
of Python that is truly scary. I first met Shannon through Titus, ironic again, but he and
I became quick friends. Shannon is the real deal in every sense of the word, and has
taught me a tremendous amount about Python, in fact, staggering would be a better
word. His help with Python, and editing this book has been incredible, and I owe him
tremendously. I shudder to think of what it would have looked like without him. I can’t
ever imagine a company being foolish enough to let him get away, and I look forward
to helping him with his first book. Finally, he is just an incredible technical reviewer.
You can read his blog here: http://jjinux.blogspot.com/.
Doug Hellmann was our other star technical reviewer and was exceptionally productive
and helpful. Jeremy and I are extremely fortunate to get someone of his caliber to review
the book. He went above and beyond his call of duty, and is truly a force of efficiency
Preface | xv
to reckon with. He was also a great source of motivation while we worked together at
Racemi. You can read his blog here: http://blog.doughellmann.com/.
Thanks to Scott Leerseen for reviewing our book and giving us good advice along the
way. I also especially enjoyed our code review battles. Just remember, I am always right.
Thanks to Alfredo Deza for the work on making an Ubuntu virtual machine for the
book, your expertise was greatly appreciated.
A very large thanks to Liza Daly, for providing good feedback on some really early, and
rough, parts of our book. This was tremendously helpful.
Special thanks to Jeff Rush for his advice and reference material on Buildout, Eggs, and
Virtualenv.
Thanks to Aaron Hillegass who has given me some great advice and help along the way,
and who has a great training company, Big Nerd Ranch. He is a special person, who I
am lucky to have met. Thanks to Mark Lutz, who I had the pleasure of taking a Python
training course from, and who has written some great books on Python.
Thanks to the people in the Python community in Atlanta, and the members of PyAtl:
http://pyatl.org; you have all taught me a great deal. Rick Copeland, Rick Thomas,
Brandon Rhodes, Derek Richardson, Jonathan La Cour, a.k.a Mr. Metaclass, Drew
Smathers, Cary Hull, Bernard Matthews, Michael Langford, and many more I have
forgotten to mention. Brandon and Rick Copeland in particular have been very helpful
and are awesome Python programmers. You can read Brandon’s blog at http://rhodes
mill.org/brandon/.
Thanks to Grig Gheorghiu for giving us expert sysadmin and testing advice and for
giving us a kick in the butt when we needed one.
Thanks to my former employer Racemi, and the CTO/Founder, Charles Watt. I learned
a lot from you and was glad you knew which competitive buttons to push. Just re-
member I will kick your butt at writing code, a 26-mile run, or a 200-mile bike ride any
day, just tell me where and when.
Thanks to Dr. Nanda Ganesan, who was a great mentor in graduate school at CSULA.
You taught me a lot about information technology and life and encouraged me to think
big.
Thanks to Dr. Cindy Heiss, who was my professor for my undergraduate degree in
nutritional science. You got me started on web development, encouraged me to believe
in myself, and ultimately made an impact on my life, thanks!
Thanks to Sheldon Blockburger, who let me try out for Division I decathlon as a walk-
on at Cal Poly SLO. Even though I didn’t make the team, you showed me how to be a
fierce competitor and warrior, and taught me the self-discipline to run 200-meter in-
tervals by myself. I believe weekly 200-meter interval workouts make me a better soft-
ware engineer.
xvi | Preface
There were many other people who helped tremendously along the way, including
Jennifer Davis, yet another friend from Caltech, who gave us some great feedback; some
of my friends and coworkers at Turner; Doug Wake, Wayne Blanchard, Sam Allgood,
Don Voravong; some of my friends and coworkers from Disney Feature animation,
including Sean Someroff, Greg Neagle, and Bobby Lea. Greg Neagle in particular taught
me a lot about OS X. Also, thanks to J.F. Panisset, who I met at Sony Imageworks, for
teaching me quite a bit about engineering in general. Although he is now a CTO, he is
another rare catch for any company.
I would like to thank a few others who made some important contributions: Mike
Wagner, Chris McDowell, and Shaun Smoot.
Thanks to Bruce J. Bell, who I worked with at Caltech. He taught me quite a bit about
Unix and programming over the years, and I owe him greatly for it. You can read his
material here: http://www.ugcs.caltech.edu/~bruce/.
Also thanks to Alberto Valez, my boss at Sony Imageworks, for being possibly the best
boss I ever had and giving me the chance to completely automate my job. Thanks to
film editor Ed Fuller, who helped with advice on the book, and was a good friend during
this process.
Thanks to many people in the Python community. First, thanks to Guido van Rossum
for writing a great language, for being a great leader, and for being patient with me
when I asked for advice on the book. There are so many rock stars in the Python com-
munity who crank out useful tools that I use everyday. They include Ian Bicking, Fer-
nando Perez and Villi Vainio, Mike Bayer, Gustavo Niemeyer, etc. Thanks! Thanks to
the great book by David Beazely, and his fantastic tutorial at PyCon 2008 on Genera-
tors. Thanks to other writers about Python and systems administration as well. You
can find links to their work here: http://wiki.python.org/moin/systems_administration.
Thanks also to the Repoze crew: Tres Seaver and Chris McDonough (http://repoze.org/
index.html).
Special thanks to the great tools, advice, and tolerance from Phillip J. Eby on the
setuptools section. Also, thanks to Jim Fulton who tolerated my questions about ZODB
and buildout, with a crazy schedule. Additional thanks to Martijn Fassen, who taught
me about ZODB and Grok. If you want to see the future of Python web development,
check out Grok: http://grok.zope.org/.
Thanks to Red Hat Magazine staff, Julie Bryce, Jessica Gerber, Bascha Harris, and Ruth
Suehle, for letting me try out ideas we used in this book in the form of articles. Also,
thanks to Mike McCrary at IBM Developerworks, for letting me write articles to try out
ideas we used in this book.
I want to thank the multitudes of people who told me at one point in my life that I
couldn’t do something. At almost every step, I have met discouraging people who told
me everything from I would never get into the college I wanted to to I would never learn
to program. Thank you for giving me the extra motivation to succeed at my dreams.
Preface | xvii
Humans can create their own reality if they truly believe in themselves, and I would
encourage everyone to give themselves a chance to do what they truly want to do.
Finally, thanks to O’Reilly and Tatiana Apandi, for believing in my original pitch for a
book on Python and Systems Administration. You took a chance and believed in me
and Jeremy, and I thank you for that. Although Tatiana left O’Reilly near the end of
our book to pursue her dreams, her impact was still felt. I also want to thank our new
editor Julie Steele, who has been supportive and helpful every step of the way. You have
really provided a sea of calm that I personally appreciated greatly. I look forward to
hearing great things in the future from Julie, and I’m excited to work with her again.
Jeremy’s Acknowledgments
After reading Noah’s list of thanks, it makes me feel both ungrateful, because I know
my list won’t be that long, and at a loss, because I think he covered nearly everyone
that I wanted to thank.
First, I must thank my God, through Whom I can do all things and without Whom, I
can do nothing.
First in an earthly sense, I thank my wife, Debra. You kept the children engaged with
other activities while I worked on the book. You enforced the so-often reapeated rule
“Don’t bother Daddy while he’s working on his book.” You encouraged me when I
needed it, and you also gave me a lot of space, which is what I needed most. Thank
you. I love you. I could not have written this book without you.
I also must thank my sweet children, Zane and Justus, for their patience through the
process of my writing this book. I missed out on a lot of trips to Stone Mountain with
you both. I still put one of you to bed most nights, but I missed out on staying in there
long enough to fall asleep with you, like I used to. I missed out on the last several weeks
of Kid’s Rock on Wednesday nights. I missed out on so much, but you bore it patiently.
So, thank you for your patience. And thank you for your excitement as you hear that
I’m almost done with the book. I love you both.
I want to thank my parents, Charles and Lynda Jones, for their support through the
course of my writing this book. But more than that, I want to thank them for being a
living example of a strong work ethic, of earning everything you have, of working hard
to better yourself, and of spending money wisely. Those are lessons I hope to pass on
to Zane and Justus.
Thank you to Noah Gift, my coauthor, for getting me into this mess. It has been hard,
harder than I thought and definitely one of the hardest things I’ve ever done in my life.
I think it says a lot about a person when you work on something like this with him and
at the end, you can still think of him as your friend. Thanks, Noah. This book would
not have begun if not for you.
xviii | Preface
I want to thank our team of reviewers. I think that Noah has already thanked all of you,
but I want to thank everyone that I can: Doug Hellman, Jennifer Davis, Shannon JJ
Behrens, Chris McDowell, Titus Brown, and Scott Leerseen. You guys were awesome.
There were times when I thought that I had something spot-on and you readjusted my
thinking. Or you just brought a completely different perspective to the book and helped
me see my work through a different set of eyes. (That was mostly you, Jennifer. If the
text processing chapter is useful for sysadmins, it’s mostly because of you.) Thank you
all.
I also want to thank our editors, Tatiana Apandi and Julie Steele. You guys handled
the hard stuff, freeing us up to work on the book. You both eased our burden along
the way. Thank you.
I’d also like to thank Fernando Perez and Ville Vainio for your amazing feedback. I
hope I’ve done IPython justice. And thank you for IPython. I feel like I couldn’t live
without it.
Thank you Duncan McGreggor, for helping me get the Twisted code in better shape.
Your comments were extemely helpful. And thank you for working on Twisted. It is
an amazing framework. I hope to use it more, real soon now.
I thank Bram Moolenaar and everyone who has ever worked on the Vim editor. Almost
every word and XML tag that I wrote flowed through capabilities Vim. I picked up a
few tricks along the way that I’ll incorporate into my daily editing habits. Vim made
me more productive. Thank you.
I also want to thank Linus Torvalds, the Debian folks, the Ubuntu folks, and anyone
else who has ever worked on Linux. Almost every word that I typed was done on Linux.
You made it incredibly simple to set up new environments and test different things.
Thank you.
Finally, but by no means least, I want to thank Guido van Rossum and everyone who
has ever done any work on Python. I have been benefitting from your work for a number
of years now. I was hired for my last two jobs because of Python. Python, the language,
and Python, the community, have been both a great joy for me since I started working
with it sometime around 2001–2002. Thank you. Python has been very good to me.
Preface | xix
Random documents with unrelated
content Scribd suggests to you:
happened, sometimes, unavoidably, when they were enticed,
separately, into the kiddah.
NATURALISTS’ CALENDER.
Mean Temperature 39·65.
March 10.
Benjamin West.
A few anecdotes of this eminent painter, who died on the 10th of
March, 1820, are related in vol. i. p. 346. By the favour of a
gentleman who possesses letters from him, the reader is presented
with
Mr. West’s Autograph.
NATURALISTS’ CALENDAR.
Mean Temperature 38·90.
March 11.
Newark Custom,
FOUNDED ON A DREAM.
Chronology.
1727. March 11. The equestrian statue of king George I., in
Grosvenor-square, was much defaced; the left leg torn off, the
sword and truncheon broken off, the neck hacked as if designed to
cut off the head, and a libel left at the place.[78]
NATURALISTS’ CALENDAR.
Mean Temperature 40·60.
March 12.
1826. Fifth Sunday in Lent.
Chronology.
On the 12th of March, 1808, died, at West Ham, in Essex, George
Gregory, D. D. vicar of that parish. He was descended from a
respectable family, originally from Scotland, a branch of which was
settled in Ireland. His father, who had been educated in Trinity-
college, Dublin, held, at the time of his son’s birth, the living of
Edernin, and a prebend in the cathedral of Ferns. Dr. Gregory was
born on April 14, 1754, but whether in Dublin or in Lancashire, of
which county his mother was a native, is uncertain. When twelve
years of age, at the death of his father, he was removed to
Liverpool, where his mother fixed her residence, desiring to place
him in commerce; but a taste for literature being his ruling
propensity, he studied in the university of Edinburgh, in 1776
entered into holy orders, and his first station in the church was in
the capacity of a curate at Liverpool. His attachments were chiefly
among the liberal and literary. In conjunction with Mr. Roscoe, and
other congenial spirits, Dr. Gregory had the merit of publicly
exposing the cruelty and injustice of the slave trade in the principal
seat of that traffic. In 1782, he removed to London, and obtained
the curacy of St. Giles’s, Cripplegate, which, on account of the
weight of its parochial duty, he left in three years, though by a
general invitation he was recalled as morning preacher in 1788; and
on the death of the vicar in 1802, a request was presented to the
dean and chapter of St. Paul’s, signed by every inhabitant, that he
might succeed to the vacancy. In the mean time he pursued with
indefatigable industry those literary occupations, which, in various
ways, have benefited the public. Dr. Gregory was a useful writer
who, without aiming, except rarely, at the reputation of original
composition, performed real services to letters, by employing a
practised style, an exercised judgment, and extensive information, in
works of compilation or abridgement, adapted to the use of that
numerous class who desire to obtain knowledge in a compendious
manner. His publications were successfully planned and ably
executed. He served at different times the curacy and lectureship of
St. Botolph, the lectureship of St. Luke’s, and a weekly lectureship of
St. Antholin’s, and was elected evening preacher at the Foundling
hospital, which the state of his health obliged him to resign. The
bishop of London presented him with a small prebend in the
cathedral of St. Paul’s, which he relinquished on receiving the rectory
of Stapleford, Herts. In 1804, he was presented by Lord Sidmouth
(then Mr. Addington) with the valuable living of West Ham, in Essex,
when he resigned every other clerical charge except that of
Cripplegate, to which parish he was attached by warm feelings of
gratitude.
At West Ham he passed four years, discharging with fidelity his
duties as a clergyman and a magistrate, and occupying his leisure
with literature. Life was endeared to him by domestic enjoyments in
the bosom of an amiable and affectionate family, and by the society
of many friends, whom he was much valued for his perpetual
readiness to serve and oblige, and the unaffected cheerfulness of his
conversation. Without any decided cause of illness, the powers of his
constitution suddenly and all together gave way; every vital function
was debilitated, and after a short confinement, he expired with the
calm resignation and animating hopes of a christian. Among his
numerous works are, “Essays, historical and moral,” a “Translation of
Lowth’s Lectures on the Sacred Poetry of the Hebrews,” a “Church
History,” from which he acquired celebrity with the inquiring, “The
Economy of Nature,” and a well-known “Dictionary of Arts and
Sciences.”[79]
Curious Narrative.
To the Editor of the Every-Day Book.
Sir,
The interment of the late duchess of Rutland, at Bottesford, the
family burialplace, has had a more than usual number of persons to
visit its many sepulchral monuments. One of them to the memory of
Francis Manners, earl of Rutland, who lies buried here, is very
splendid. It represents him with his countess in a kneeling posture,
and two children who are supposed to have been bewitch’d to
death. The inscription to that effect I read, and procured a copy of
the particulars from an old book which is always read to visiters by
the sexton; and which, as to the execution of the alleged criminals
at Lincoln, on the 12th of March, 1618, I find to be correct, and send
it for your use.
I am, Sir, &c.
B. Johnson.
Newark, Feb. 22, 1826.
The only alteration in the transcript is a variation from inaccurate
spelling.
Extract
From the Church Book of Bottesford.
When the Right Hon. Sir Francis Manners succeeded his Brother
Roger in the Earldom of Rutland, and took possession of Belvoir
Castle, and of the Estates belonging to the Earldom, He took such
Honourable measures in the Courses of his Life, that He neither
displaced Tenants, discharged Servants, nor denied the access of the
poor; but, making Strangers welcome, did all the good offices of a
Noble Lord, by which he got the Love and good-will of the Country,
his Noble Countess being of the same disposition: So that Belvoir
Castle was a continual Place of Entertainment, Especially to
Neighbours, where Joan Flower and her Daughter were not only
relieved at the first, but Joan was also admitted Chairwoman and her
daughter Margarett as a Continual Dweller in the Castle, looking to
the Poultry abroad, and the washhouse at Home; and thus they
Continued till found guilty of some misdemeanor which was
discovered to the Lady. The first complaint against Joan Flower the
Mother was that she was a Monstrous malicious Woman, full of
Oaths, Curses, and irreligious Imprecations, and, as far as appeared,
a plain Atheist. As for Margarett, her Daughter, she was frequently
accused of going from the Castle, and carrying Provisions away in
unreasonable Quantities, and returning in such unseasonable Hours
that they could not but Conjecture at some mischief amongst them;
and that their extraordinary Expences tended both to rob the Lady
and served also to maintain some debauched and Idle Company
which frequented Joan Flower’s House. In some time the Countess
misliking her (Joan’s) Daughter Margarett, and discovering some
Indecencies in her Life, and the Neglect of her Business, discharged
her from lying any more in the Castle, yet gave her forty Shillings, a
Bolster, and a Mattress of wool, commanding her to go Home. But at
last these Wicked Women became so malicious and revengeful, that
the Earl’s Family were sensible of their wicked Dispositions; for, first,
his Eldest Son Henry Lord Ross was taken sick after a strange
Manner, and in a little time Died; and, after, Francis Lord Ross was
Severely tortured and tormented by them, with a Strange sickness,
which caused his Death. Also, and presently after, the Lady
Catherine was set upon by their Devilish Practices, and very
frequently in Danger of her Life, in strange and unusual Fits; and, as
they confessed, both the Earl and his Countess were so Bewitched
that they should have no more Children. In a little time after they
were Apprehended and carried to Lincoln Jail, after due Examination
before sufficient Justices and discreet Magistrates.
Joan Flower before her Conviction called for bread and butter,
and wished it might never go through her if she were guilty of the
Matter she was Accused of; and upon mumbling of it in her Mouth
she never spoke more, but fell down and Died, as she was carried to
Lincoln Jail, being extremely tormented both in Soul and Body, and
was Buried at Ancaster.
The Examination of Margarett Flower the 22nd of January, 1618.
She confessed that, about four years since, her Mother sent her
for the right Hand glove of Henry Lord Ross, and afterwards her
Mother bid her go again to the Castle of Belvoir, and bring down the
glove, or some other thing, of Henry Lord Ross’s; and when she
asked for what, her Mother answered to hurt My Lord Ross; upon
which she brought down a glove, and gave it to her Mother, who
stroked Rutterkin her cat (the Imp) with it, after it was dipped in hot
water, and, so, pricked it often after; which Henry Lord Ross fell sick,
and soon after Died. She further said that finding a glove, about two
or three years since of Francis Lord Ross’s, she gave it to her mother,
who put it into hot water, and afterwards took it out, and rubbed it
on Rutterkin (the Imp,) and bid him go upwards, and afterwards
buried it in the yard, and said “a mischief light on him but he will
mend again.” She further confessed that her Mother and her and her
sister agreed together to bewitch the Earl and his Lady, that they
might have no more children; and being asked the cause of this their
malice and ill-will, she said that, about four years since, the
Countess, taking a dislike to her, gave her forty shillings, a Bolster,
and a mattress, and bid her be at Home, and come no more to dwell
at the Castle; which she not only took ill, but grudged it in her heart
very much, swearing to be revenged upon her, on which her Mother
took wool out of the Mattress, and a pair of gloves which were given
her by Mr. Vovason, and put them into warm water, mingling them
with some blood, and stirring it together; then she took them out of
the water, and rubbed them on the belly of Rutterkin, saying, “the
Lord and the Lady would have Children but it would be long first.”
She further confessed that, by her Mother’s command, she brought
to her a piece of a handkerchief of the Lady Catherine, the Earl’s
Daughter, and her Mother put it into hot water, and then, taking it
out, rubbed it upon Rutterkin, bidding him “fly and go,” whereupon
Rutterkin whined and cryed “Mew,” upon which the said Rutterkin
had no more power of the Lady Catherine to hurt her.
Margarett Flower and Phillis Flower, the Daughters of Joan
Flower, were executed at Lincoln for Witchcraft, March 12, 1618.
Whoever reads this history should consider the ignorance and
dark superstition of those times; but certainly these women were
vile abandoned wretches to pretend to do such wicked things.
“Seek not unto them that have familiar spirits, nor wizards, nor
unto witches that peep and that mutter: should not a people seek
unto their God.” Isaiah xix.
NATURALISTS’ CALENDAR.
Mean Temperature 40·72.
March 13.
Chronology.
On the 13th of March, 1614, in the reign of king James I.,
Bartholomew Legat, an Arian, was burnt in Smithfield for that
heresy.
1722, March 13, there were bonfires, illuminations, ringing of
bells, and other demonstrations of joy, in the cities of London and
Westminster, upon the dissolution of the septennial parliament.[80]
NATURALISTS’ CALENDAR.
Mean Temperature 40·47.
March 14.
Football.
To the Editor of the Every-Day Book.
Sir,—Perhaps you are not aware that, during fine weather,
football is played every Sunday afternoon, in the fields, between
Oldfield’s dairy and Copenhagen-house, near Islington, by Irishmen.
It generally commences at three o’clock, and is continued till dusk.
The boundaries are fixed and the parties chosen. I believe, as is
usual in the sister kingdom, county-men play against other county-
men. Some fine specimens of wrestling are occasionally exhibited, in
order to delay the two men who are rivals in the pursuit of the ball;
meantime the parties’ friends have time to pursue the combat, and
the quick arrival of the ball to the goal is generally the consequence,
and a lusty shout is given by the victors.
When a boy, football was commonly played on a Sunday
morning, before church time, in a village in the west of England, and
the church-piece was the ground chosen for it.
I am, &c.
Islington. J. R. P.
Royal Bridal.
On the 14th of March, 1734, his serene highness the prince of
Orange was married at St. James’s, to the princess-royal.
At eleven o’clock at night, the royal family supped in public in the
great state ball-room.
About one, the bride and bridegroom retired, and afterwards sat
up in their bed-chamber, in rich undresses, to be seen by the
nobility, and other company at court.
On the following day there was a more splendid appearance of
persons of quality to pay their compliments to the royal pair than
was ever seen at this court; and in the evening there was a ball
equally magnificent, and the prince of Orange danced several
minuets.
A few days before the nuptials, the Irish peers resident in
London, not having received summonses to attend the royal
procession, met to consider their claims to be present, and
unanimously resolved that neither themselves nor the peeresses
would attend the wedding as spectators, and that they would not
send to the lord chamberlain’s office for their tickets.[81]
The “Papeguay.”
To the Editor of the Every-Day Book.
Kennington, March 7, 1826.
Sir,—The following brief observations on the sport mentioned at
p. 289, may not be considered unacceptable; strange to say, it is not
mentioned by either Strutt or Fosbroke in their valuable works.
This sport obtained over the principal parts of Europe. The
celebrated composer, C. M. Von Weber, opens his opera of horrors,
“Der Freischütz,” with a scene of shooting for the popingay. This is a
proof that it is common in Germany, where the successful candidate
is elected a petty sovereign for the day. The necessity and use of
such a custom in a country formed for the chase, is obvious.
The author of the “Waverley” novels, in his excellent tale of “Old
Mortality,” introduces a scene of shooting for the popingay, as he
terms it. It was usual for the sheriff to call out the feudal array of
the county, annually, to what was called the wappen-schaws. The
author says, “The sheriff of the county of Lanark was holding the
wappen-schaw of a wild district, called the Upper Ward of
Clydesdale, on a traugh or level plain, near to a royal borough, the
name of which is in no way essential to my story, upon the morning
of the 5th of May, 1679, when our narrative commences. When the
musters had been made, and duly reported, the young men, as was
usual, were to mix in various parts, of which the chief was to shoot
at the popingay, an ancient game formerly practised with archery,
and then with firearms. This was the figure of a bird, decked with
party-coloured feathers, so as to resemble a popingay or parrot. It
was suspended to a pole, and served for a mark, at which the
competitors discharged their fusees and carbines in rotation, at the
distance of sixty or seventy paces. He whose ball brought down the
mark, held the proud title of captain of the popingay for the
remainder of the day, and was usually escorted in triumph to the
most reputable charge-house in the neighbourhood, where the
evening was closed with conviviality, conducted under his auspices.”
From the accuracy and research of the author, I am inclined to take
it for granted, that this sport was common in Scotland.
A friend informs me it is common in Switzerland, and I have no
doubt obtained pretty generally over Europe. In conclusion, allow me
to remark that in my opinion the man on horseback, with the
popingay on the pole, is returning as victor from the sport; the pole
in the distance evidently had the honour of supporting the popingay,
until it was carried away by the aim of the marksman.
I am, sir, &c. T. A.
NATURALISTS’ CALENDAR.
Mean Temperature 40·90.
March 15.
The Highgate Custom.
With much pleasure insertion is given to the following letter and
its accompanying song.
To the Editor of the Every-Day Book.
Seymour-street, Feb. 18, 1826.
Sir,—In illustration of the custom of “Swearing on the horns at
Highgate,” described at p. 79, in the Every-Day Book of the present
year, I enclose you a song, which was introduced in the pantomime
of Harlequin Teague, performed at the Haymarket theatre, in
August, 1742. If you think it worthy the columns of your valuable
work, it is at your service.
I am, &c.
Pasche.
Song by the Landlord of the Horns
Silence! take notice, you are my son,
Full on your father look, sir;
This is an oath you may take as you run,
So lay your hand on the Hornbook, sir.
Hornaby, hornaby, Highgate and horns,
And money by hook or by crook, sir.
Hornaby, &c.
Spend not with cheaters, nor cozeners, your life,
Nor waste it on profligate beauty;
And when you are married, be kind to your wife,
And true to all petticoat duty.
Dutiful, beautiful, kind to your wife,
And true from the cap to the shoetie.
Dutiful, &c.
To drink to a man when a woman is near,
You never should hold to be right, sir;
Nor unless ’tis your taste, to drink small for strong beer,
Or eat brown bread when you can get white, sir.
Manniken, canniken, good meat and drink
Are pleasant at morn, noon, and night, sir
Manniken, &c.
To kiss with the maid when the mistress is kind,
A gentleman ought to be loth, sir:
But if the maid’s fairest, your oath does not bind,
Or you may, if you like it, kiss both, sir.
Kiss away, both you may, sweetly smack night and day,
If you like it—you’re bound by your oath, sir.
Kiss away, &c.
When you travel to Highgate, take this oath again,
And again, like a sound man, and true, sir,
And if you have with you some more merry men,
Be sure you make them take it too, sir.
Bless you, son, get you gone, frolic and fun,
Old England, and honest true blue, sir.
Bless you, &c.
NATURALISTS’ CALENDAR.
Mean Temperature 40· 8.
March 16.
Cornish Sports,
AND THE
Origin of Piccadilly.
From several valuable communications, a letter is selected for
insertion this day, because it happens to be an open one, and
therefore free for pleasant intelligence on any subject connected
with the purpose of this publication. It is an advantage resulting
from the volume already before the public, that it acquaints its
readers with the kind of information desired to be conveyed, more
readily than the prospectus proposed to their consideration. If each
reader will only contribute something to the instruction and
amusement of the rest, the editor has no doubt that he will be able
to present a larger series of interesting notices and agreeable
illustrations, than any work he is at present acquainted with.
To the Editor of the Every-Day Book.
February 6, 1826.
Sir,—I send you the account of two more games, or in-doors
sports, in vogue among the country people in Cornwall. Of the latter,
Mr. D. Gilbert has made slight mention in the introduction to his
carols, second edition; but he states that these games, together with
carol-singing, may be considered as obsolete, which is by no means
the case: even yet in most of the western parishes, (and of these I
can speak from personal observation,) the carol-singers, not only
sing their “auntient chaunts” in the churches, but go about from
house to house in parties. I am told the practice is the same in many
other parts of the county, as it is also in various places throughout
the kingdom. I have added a slight notice respecting Piccadilly,
which (if worth inserting) may be new to some of your readers; but,
now for our Cornish sports: I state them as I found them, and they
are considered provincial.
First, then, the Tinkeler’s (tinker’s) shop.—In the middle of the
room is placed a large iron pot, filled with a mixture of soot and
water. One of the most humourous of the set is chosen for the
master of the shop, who takes a small mop in his left hand, and a
short stick in his right; his comrades each have a small stick in his
right hand; the master gives each a separate name, as Old Vulcan,
Save-all, Tear’em, All-my-men, Mend-all, &c. After these
preliminaries, all kneel down, encircling the iron vessel. The master
cries out, “Every one (that is, all together, or ‘one and all,’ as the
Cornish say,) and I;” all then hammer away with their sticks as fast
as they can, some of them with absurd grimaces. Suddenly the
master will, perhaps, cry out, “All-my-men and I;” upon this, all are
to cease working, except the individual called All-my-men; and if any
unfortunate delinquent fails, he is treated with a salute from the
mop well dipped in the black liquid: this never fails to afford great
entertainment to the spectators, and if the master is “well up to the
sport,” he contrives that none of his comrades shall escape
unmarked; for he changes rapidly from All-my-men and I, to Old
Vulcan and I, and so on, and sometimes names two or three
together, that little chance of escaping with a clean face is left.
The Corn-market.—Here, as before, an experienced reveller is
chosen to be the master, who has an assistant, called Spy-the-
market. Another character is Old Penglaze, who is dressed up in
some ridiculous way, with a blackened face, and a staff in his hand;
he, together with part of a horse’s hide girt round him, for the
hobby-horse, are placed towards the back of the market. The rest of
the players sit round the room, and have each some even price
affixed to them as names; for instance, Two-pence, Four-pence, Six-
pence, Twelve-pence, &c. The master then says “Spy-the-market,” to
which the man responds, “Spy-the-market;” the master repeats,
“Spy-the-market;” the man says, “Aye, sirrah.” The master then asks
the price of corn, to which Spy-the-market, may reply any price he
chooses, of those given to his comrades, for instance, “Twelve-
pence.” The master then says, “Twelve-pence,” when the man
hearing that price answers “Twelve-pence,” and a similar
conversation ensues, as with Spy-the-market before, and Twelve-
pence names his price, and so the game proceeds; but if, as
frequently happens, any of the prices forget their names, or any
other mistakes occur in the game, the offender is to be sealed, a
ceremony in which the principal amusement of the game consists; it
is done as follows,—the master goes to the person who has
forfeited, and takes up his foot, saying, “Here is my seal, where is
old Penglaze’s seal?” and then gives him a blow on the sole of the
foot. Old Penglaze then comes in on his horse, with his feet tripping
on the floor, saying, “Here I comes, neither riding nor a foot;” the
horse winces and capers, so that the old gentleman can scarcely
keep his seat. When he arrives at the market, he cries out, “What
work is there for me to do?” The master holds up the foot of the
culprit and says, “Here, Penglaze, is a fine shoeing match for you.”
Penglaze dismounts; “I think it’s a fine colt indeed.” He then begins
to work by pulling the shoe off the unfortunate colt, saying “My
reward is a full gallon of moonlight, besides all other customs for
shoeing in this market;” he then gives one or two hard blows on the
shoe-less foot, which make its proprietor tingle, and remounts his
horse, whose duty it is now to get very restive, and poor Penglaze is
so tossed up and down, that he has much difficulty to get to his old
place without a tumble. The play is resumed until Penglaze’s seal is
again required, and at the conclusion of the whole there is a set
dance.
Piccadilly.—The pickadil was the round hem, or the piece set
about the edge or skirt of a garment, whether at top or bottom; also
a kind of stiff collar, made in fashion of a band, that went about the
neck and round about the shoulders; hence the term “wooden
peccadilloes,” (meaning the pillory) in “Hudibras,” and see Nares’s
“Glossary,” and Blount’s “Glossographia.” At the time that ruffs, and
consequently pickadils, were much in fashion, there was a
celebrated ordinary near St. James’s, called Pickadilly, because, as
some say, it was the outmost, or skirt-house, situate at the hem of
the town; but it more probably took its name from one Higgins, a
tailor, who made a fortune by pickadils, and built this with a few
adjoining houses. The name has by a few been derived from a much
frequented shop for sale of these articles; this probably took its rise
from the circumstance of Higgins having built houses there, which,
however, were not for selling ruffs; and indeed, with the exception of
his buildings, the site of the present Piccadilly was at that time open
Welcome to our website – the ideal destination for book lovers and
knowledge seekers. With a mission to inspire endlessly, we offer a
vast collection of books, ranging from classic literary works to
specialized publications, self-development books, and children's
literature. Each book is a new journey of discovery, expanding
knowledge and enriching the soul of the reade
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
ebooknice.com