Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Oct 1999 10:50:02 -0700 (PDT)
From:      Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: misc/14150: /usr/binlast does not accept input from stdin nor does it process .gz files
Message-ID:  <199910061750.KAA36431@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR misc/14150; it has been noted by GNATS.

From: Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
To: Ruslan Ermilov <ru@ucb.crimea.ua>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: misc/14150: /usr/binlast does not accept input from stdin nor
 does it process .gz files
Date: Wed, 6 Oct 1999 19:38:43 +0200 (MET DST)

 On Wed, 6 Oct 1999, Ruslan Ermilov wrote:
 >> So, why is this a problem? After all, there is the -f option, right?
 > Right :-)
 > 
 > `/usr/bin/last -f /dev/stdin < wtmp-format-file' will do the trick.
 
 Hmm, but unfortunately
 
   % zcat /var/log/wtmp.Aug.gz | /usr/bin/last -f /dev/stdin
   last: /dev/stdin: Illegal seek
 
 does not work. Even with that nice trick I still do not see how I can
 use last for one of those gzipped wtmp files in /var/log.
 
 > As for .gz files, it's bloat.
 
 Fully agreed. That why I filed the report to ask for /usr/bin/last 
 also accepting its input from stdin so that I can just issue
 
   % zcat /var/log/wtmp.Aug.gz | last 
 
 Sorry if my original GNATS submission did not specify this clearly enough.
 
 Gerald
 -- 
 Gerald "Jerry" pfeifer@dbai.tuwien.ac.at http://www.dbai.tuwien.ac.at/~pfeifer/
 
 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199910061750.KAA36431>