Skip to main content
Back to USENIX
  • Conferences
  • Students
Sign in

USENIX Conference Policies

  • Event Code of Conduct
  • Conference Network Policy
  • Statement on Environmental Responsibility Policy

A New Approach to Scripting

 

Scripts are easy to write but hard to write well. Practicing system administrators know that they ought to check all errors and take corrective or abortive action, but such minutiae usually serve as a distraction from the real work the script is supposed to solve, making automation less attractive. Worse, loading up a script with such checks can obscure the flow of the code and lead to spaghetti-script.

It has generally been assumed that accepted programming methodologies for general programming apply to scripting as well. This talk argues that this is not necessarily the case, and will introduce Procedural Test-Oriented Scripting (PTOS), a programming methodology designed to make scripts more readable, resilient, and easier to write by encapsulating a script as a series of conditions that much be reached and steps for bringing them about. An open-source Perl module implementing this methodology, useful for both beginning and advanced system programmers, will be demonstrated.

Trey Harris, Amazon.com

Open Access Media

USENIX is committed to Open Access to the research presented at our events. Papers and proceedings are freely available to everyone once the event begins. Any video, audio, and/or slides that are posted after the event are also free and open to everyone. Support USENIX and our commitment to Open Access.

BibTeX
@inproceedings {269545,
author = {Trey Harris},
title = {A New Approach to Scripting },
booktitle = {18th Large Installation System Administration Conference (LISA 04)},
year = {2004},
address = { Atlanta, GA},
url = {https://www.usenix.org/conference/lisa-04/new-approach-scripting},
publisher = {USENIX Association},
month = nov
}
Download

Presentation Video

Presentation Audio

MP3 Download OGG Download

Download Audio

  • Log in or register to post comments

© USENIX
EIN 13-3055038

LISA is a registered trademark of the USENIX Association.

  • Privacy Policy
  • Contact Us