HP3000-L Archives

July 2008, Week 1

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Matthew Perdue <[log in to unmask]>
Reply To:
Matthew Perdue <[log in to unmask]>
Date:
Tue, 1 Jul 2008 12:04:42 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (32 lines)
John Pitman asked if there's a way to get proximate results to the "tail -f"
command.

Robert W. Mills replied:
 Try:
        :print ONNNN.OUT.HPSPOOL;START=nnnn

where ONNNN is the spoolfile id and nnnn is the number of record you want to
see counting from the end of the file.

To which I add:

You can use a text editor to text in the file and then list the last 'n'
lines, e.g.:
:EDITOR
T Onnnn.OUT.HPSPOOL,UNN
L LAST-20/LAST

or

:SPIFF
T Onnnn
L LAST-20/LAST

Using the spooler utility SPIFF has the added benefit of removing any nasty
side effects of carriage control or escape sequence characters that may be
embedded in the spool file from messing with your terminal emulator settings
and display.

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2