Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  login

No problem is insoluble. -- Dr. Janet Wallace, "The Deadly Years", stardate 3479.4

devel / rocksolid.programming / Re: None

* bash tac in freebsdRetro Guy
`* NoneAnonymous
 `- Re: NoneRetro Guy

bash tac in freebsd
From: (Retro Guy)
Newsgroups: rocksolid.programming
Subject: bash tac in freebsd
Date: Wed, 16 Sep 2020 03:15:24 +0000
Organization: novaBBS
Message-ID: <21a99db09c6b3bed821752298ece30fc$>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info:; posting-account="retrobbs1";
logging-data="10239"; mail-complaints-to=""
User-Agent: Rocksolid Light (
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on novabbs
X-Rslight-Site: $2y$10$GkBvC.npjY0BAgyhOkgCEOasfzXre9hIpQBTvD7A9tLcBccmDWmti
Xref: rslight2 rocksolid.programming:669
 by: Retro Guy - Wed, 16 Sep 2020 03:15 UTC

While working on displaying last user in a thread, I found that bash tac worked well and is much faster that cat as I want to get the latest files first and they're at the end of the overview.

Seems freebsd doesn't have tac, so I used cat on freebsd. Then I tried tail -r on freebsd and it works great, but it doesn't work on Linux (invalid option 'r').

So I'm back to using a different command for each os, but at least I can use tail -r on freebsd now.

I'll eventually get this into pure php, but right now this is the fastest way to gather the info and render the pages. Reading the file in reverse in php is much slower, so still looking into better ways to do this.

Retro Guy

Posted on: novaBBS

From: (Anonymous)
Newsgroups: rocksolid.programming
Subject: None
Date: Tue, 15 Sep 2020 23:20:59 -0700
Organization: def2
Message-ID: <>
References: <21a99db09c6b3bed821752298ece30fc$>
Content-Type: text/plain; charset=UTF-8
Injection-Info:; posting-account="def2";
logging-data="1747"; mail-complaints-to=""
Xref: rslight2 rocksolid.programming:670
 by: Anonymous - Wed, 16 Sep 2020 06:20 UTC

Don't know about freebsd but dragonfly has implemented tac recently. It effectively is tail -rq

Posted on def2

Re: None
From: (Retro Guy)
Newsgroups: rocksolid.programming
Subject: Re: None
Date: Tue, 15 Sep 2020 23:54:40 -0700
Organization: RetroBBS
Message-ID: <20200915235440.6be11d68@desktop14.dt>
References: <21a99db09c6b3bed821752298ece30fc$>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info:; posting-account="retrobbs1"; posting-host="localhost:";
logging-data="30573"; mail-complaints-to=""
X-Newsreader: Claws Mail 3.11.1 (GTK+ 2.24.25; x86_64-pc-linux-gnu)
Xref: rslight2 rocksolid.programming:671
 by: Retro Guy - Wed, 16 Sep 2020 06:54 UTC

On Tue, 15 Sep 2020 23:20:59 -0700
Anonymous <> wrote:

> Don't know about freebsd but dragonfly has implemented tac recently.
> It effectively is tail -rq

Strange, I can't get tail -r to work on Debian. (invalid option -- 'r')
Of course tail -rq gives the same result.


rocksolid light 0.9.1
clearnet tor