Subject: | |
From: | |
Reply To: | |
Date: | Wed, 14 Mar 2001 11:08:56 -0500 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
I wrote this awhile ago for use internally, but it'll do the trick for
simple uses.
ftp://ftp.telamon.com/mpe_freeware/tail.nm.wrq
To camp on a job's $STDLIST:
:XEQ TAIL.somegrp.someacct "-F filename"
where, for spoolfles, 'filename' is either 'Onnn.OUT.HPSPOOL' or just
'nnn' for short.
Add "-N nnn" to have the program start 'nnn' records from EOF. Note
that to do this for a spool file, TAIL has to read the entire file, as
it can't do an FPOINT/FREADDIR against a variable-width file.
TAIL recognizes that the spoolfile is "done" when the filecode changes
from 0 to 1516. I found this out by observation, not via
documentation, so hopefully no one will get any false EOF indications,
but if you do, let me know.
Otherwise, use ctl-Y to terminate its execution when the '-F' option
has been specified.
------------
Randy Medd
Telamon, Inc.
|
|
|