Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

Six or so years ago, I started out using tail -f log to help debug an hp/ux-based system that used a central log of communications with many remote systems. I had to re-write the system tail utility so that it followed the logfile by name rather than file handle, as the logs cycled whenever they reached a particular size. That quickly progressed to being filtered using grep to just certain key events.

With a scrolling log of many, concurrent communications, it was difficult to keep track of the one or two of interest. So that got fed into awk, which filtered only the latest event for each machine, sorted them by machine id, discarded those that had completed, and displayed the most recent 60 (the biggest screen size available).

Slowly, with the addition of a few ansi escape sequences to clear the screen and highlight the latest changes, the one-time debugging aid became more useful (current and immediate) than the system reporting tool and rapidly became the tool of choice for many of us on the project.

There was talk of re-writing it into something easier to maintain that Awk(ward), but an experiment with REXX showed that it was just too slow for the purpose. Someone did suggest Perl (version 4 was on the systems). I took one look at the couple of example scripts that were available and rejected the idea out of hand as "write-only line noise".

In my defense, I'd never seen Perl before and none of the unix people put up much of an argument. I'd also put a considerable amount of effort into learning awk etc. in order to get the (working) tool to where it was, I was kind of proud of it.

When I left the project, it was still tool of choice. The last view I have of the lab is a photograh one of the guys emailed me. Taken at a milestone celebration some months later, there are at least a couple of copyings running on the screens in the background.


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail
"Memory, processor, disk in that order on the hardware side. Algorithm, algorithm, algorithm on the code side." - tachyon

In reply to Re: That screwdriver looks like a hammer... by BrowserUk
in thread That screwdriver looks like a hammer... by tilly

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2024-04-19 11:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found