: Is there anybody who knows where I can find the Unix 'tail'-command
: for VAX-VMS ?
From an OpenVMS VAX V6.1 system:
$ help type/tail
TYPE
/TAIL
/TAIL[=n]
Displays the last several lines of a log file. The value, n,
defaults to p-2 where p is the current terminal page length. You
can use TYPE/TAIL only if all of the following are true:
o file organization is sequential
o the longest record is less than 512 bytes
o the record format is either VAR, VFC, STM, STRCM or STMLF
(for more information, see the description of FAB$B_RFM in the
OpenVMS Record Management Services Reference Manual)
--Jerry,
Gerald (Jerry) R. Leslie jle...@dmccorp.com gle...@isvsrv.enet.dec.com
Dynamic Matrix Control Corporation (my opinions are my own)
>Hi everyone.
>Is there anybody who knows where I can find the Unix 'tail'-command
>for VAX-VMS ?
>Any help is highly appreciated.
>===============================================================================
>Klaus Juul Soerensen Phone: +45 8947 5975
>UNIX-Systemmanagement Fax : +45 8947 5371
>TeleDanmark EDB A/S
>Gunnar Clausensvej 28
>DK-8260 Viby J. Denmark Internet: klaus.juul...@tdb.dk
****DISCLAIMER****
I have not worked on a UN*X system for aprx. 8 years, and my memory 'aint
that good. Looks like the 'tail' command displays the last X lines of a text
file. If this is not what is being looked for, don't read this post. X>
******************
Klaus,
If you don't have the VMS 6.x with the /TAIL qualifier, check the spring '92
VAX SIG tape for VLOG. It was written for me by Alan Zirkle here at NSWC.
It allowed our DB people here to track the log files of database
unload/reload batch jobs that ran for days. The log files for these jobs
took a long-long time to TYPE each time they wanted to check their progress.
It also allows you to provide a filename, and using RMS routines, jumps to
the end of the file and displays the last X lines. It works on most text
files, with some minor restrictions.
Let me know if you are interested and can't find it.
jAY
------------------------------------------------------------------------
Jay Jenkins Just MY You don't see
Naval Surface Warfare Center opinion no hearses with
Dahlgren, VA 22448-5000 of course. luggage racks.
jje...@relay.nswc.navy.mil ---Don Henley
HELP TYPE/TAIL
You'll get this:
TYPE
/TAIL
/TAIL[=n]
Displays the last several lines of a log file. The value, n,
defaults to p-2 where p is the current terminal page length. You
can use TYPE/TAIL only if all of the following are true:
o file organization is sequential
o the longest record is less than 512 bytes
o the record format is either VAR, VFC, STM, STRCM or STMLF
(for more information, see the description of FAB$B_RFM in the
OpenVMS Record Management Services Reference Manual)
It should do what you want:
Best regards
- Kipp -
{~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~}
{ H.A. Kippenhan Jr. | Internet: Kipp...@FNAL.GOV }
{ HEP Network Resource Center | HEPnet/NSI DECnet: FNDCD::KIPPENHAN }
{ Fermi National Accelerator Lab. | BITnet: Kipp...@FNDCD.BITNET }
{ P.O. Box 500 MS: FCC-3E/368 | Telephone: (708) 840-8068 }
{ Batavia, Illinois 60510 | FAX: (708) 840-8463 }
{~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~}
{ All opinions & ideas expressed are mine alone, and may not necessarily }
{ reflect those of Fermilab, Univ. Research Assoc., or the Dept. of Energy }
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
: Is there anybody who knows where I can find the Unix 'tail'-command
: for VAX-VMS ?
Try VMS Version 6.1
: Any help is highly appreciated.
: ===============================================================================
: Klaus Juul Soerensen Phone: +45 8947 5975
: UNIX-Systemmanagement Fax : +45 8947 5371
: TeleDanmark EDB A/S
: Gunnar Clausensvej 28
: DK-8260 Viby J. Denmark Internet: klaus.juul...@tdb.dk
--
* ** Daniel H. Land ** Seattle Public Schools *
* voice (206) 298-7599 mailstop AF-334 *
* fax (206) 298-7505 4141 Fourth Avenue South *
* net dl...@cks.ssd.k12.wa.us Seattle, WA 98134-2309 *
A number of people have posted the answer that VMS 6.1 has a TYPE/TAIL
option now. However, if you want to try another route, I have a copy of a
version of Tail written in C by D. Shepperd at Atari games which I use
here. It's got a couple of nice options such as rereading a log file that's
being written to every user-specified seconds, etc.
I can't say for sure, but it also appears to be able to read more formats
of files as well.
Anyways, if you're interested, I can send you the source.
Regards,
Shawn Allin
Alcan International Ltd.,
P.O. Box 8400,
Kingston, Ont.,
Canada K7L 5L9
(613) 541-2178
Ftp at ada.cenaath.cena.dgac.fr ; in [.VMS] directory, you'll find tail for
VMS:
CENA10:[ANONYMOUS.VMS]
TAIL.ZIP;1 13 27-MAY-1994 15:56:20.99
Patrick
--
===============================================================================
pmo...@cena.dgac.fr ______ ___ _ (Patrick MOREAU)
PSI%191190315::PMOREAU (France) / / / / /| /|
CENA/Athis-Mons FRANCE / /___/ / / | / | __ __ __ __
BP 205 / / / / |/ | | | |__| |__ |__| | |
94542 ORLY AEROGARE CEDEX / / :: / / | |__| | \ |__ | | |__|
===============================================================================
"$ TYPE/TAIL" was added to VMS in V6.1 or V6.0.
-Dan Wing, wi...@tgv.com
While TYPE/TAIL will almost certainly NOT be a clone of unix
tail, that is, have the same syntax and every conceivable option,
I'm still puzzled by your statement above.
First, in OVMS 6.1, the TYPE command supports, in addition to
/TAIL, the /CONTINUOUS /INTERVAL=n qualifiers which allows you to
look at log files (and other files) as they are being written
(assuming the application is updating the file and allows shared
read access). Furthermore, the /PAGE qualifier has been greatly
enhanced to allow scrolling forward and backward, and left and
right, etc., through the text, and as well as searching for strings.
Even nicer, the /PAGE qualifier with these nice "editing" features
(also know as "Output Navigation") has been added to DIFFERENCES,
DIRECTORY, DUMP, HELP, SEARCH, and a number of SHOW commands. :-)
Second, I don't understand what you mean by, "it also appears to
be able to read more formats of files as well." TYPE can certainly
output anything you give it, and if it's text, you may even be able
to read it. What "more formats" are you thinking of???
Now if the original poster, who didn't give specifics for
his/her system, is not at OVMS 6.0 or 6.1, there are a number of
freeware tail clones available (MOST comes to mind although I
haven't used it). The one I like the best is EPYT (yep, that's
"TYPE" spelled backwards :-), by Charles van den Ouweland. You can
get EPYT from FTP.WKU.EDU (and its mirrors) and from FTP.KCL.AC.UK.
-Ken
--
Dr. Kenneth H. Fairfield | Internet: Fair...@Slac.Stanford.Edu
SLAC, P.O.Box 4349, MS 98 | DECnet: 45537::FAIRFIELD (45537=SLACVX)
Stanford, CA 94309 | Voice: (415) 926-2924 FAX: (415) 926-4335
----------------------------------------------------------------------------
These opinions are mine, not SLAC's, Stanford's, nor the DOE's...
> Klaus Juul Sørensen (Klaus.Juul...@tdb.dk) wrote:
> : Hi everyone.
>
> : Is there anybody who knows where I can find the Unix 'tail'-command
> : for VAX-VMS ?
>
>
> Try VMS Version 6.1
Er, only to get tail...
Try the software package EXTRACT, which provides 'head' and 'tail'.
You can get it via anonymous ftp HAMLET.CALTECH.EDU.
Check that out...
>
>
> : Any help is highly appreciated.>
> : ===============================================================================
> : Klaus Juul Soerensen Phone: +45 8947 5975
> : UNIX-Systemmanagement Fax : +45 8947 5371
> : TeleDanmark EDB A/S
> : Gunnar Clausensvej 28
> : DK-8260 Viby J. Denmark Internet: klaus.juul...@tdb.dk
> --
> * ** Daniel H. Land ** Seattle Public Schools *
> * voice (206) 298-7599 mailstop AF-334 *
> * fax (206) 298-7505 4141 Fourth Avenue South *
> * net dl...@cks.ssd.k12.wa.us Seattle, WA 98134-2309 *
see ya,
Andreasw
--
Andreas W. Wylach | A...@IFWB.WUPPER.DE | Information system from
IfwB Wuppertal | ANDR...@AXPVMS.PA.DEC.COM | students for students.
W.- Germany | |
-- Don't vax me like you used to *BREAK* --
-- This is COMP.OS.VMS, not ALT.READ.MY.MIND. --
(Carl J Lydick)
Is there anybody who knows where I can find the Unix 'tail'-command
for VAX-VMS ?
Any help is highly appreciated.