Date: Fri, 8 Sep 2023 07:29:03 -0700
From: enh <e...@google.com>
To: Oliver Webb <aquahobby...@proton.me>
Cc: Rob Landley <r...@landley.net>, toybox@lists.landley.net
Subject: Re: [Toybox] [PATCH] A implementaion of the ts command
Message-ID:
        <cajgzzoqq0cekxbr7j4ndxultalcweqqnko2pgoceh1u2cut...@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"

inferno had something similar
(https://www.vitanuova.com/inferno/man/1/timestamp.html) but i don't
think it was ever in Plan 9 or the research unixes. (i've never used
the inferno timestamp(1) either, but then i never used inferno as
heavily as i used plan 9.)

On Fri, Sep 8, 2023 at 6:11?AM Oliver Webb via Toybox
<toybox@lists.landley.net> wrote:





Sent with Proton Mail secure email.

------- Original Message -------
On Friday, September 8th, 2023 at 2:38 AM, Rob Landley <r...@landley.net> wrote:


On 9/7/23 23:51, Oliver Webb via Toybox wrote:

I wrote a implementation of the command 'ts' for toybox

Where is this command from? It's not in posix or lsb, nor is it in
https://man7.org/linux/man-pages/dir_section_1.html and it's not installed on my
debian system either... You reference https://linux.die.net/man/1/ts which says
"Joey Hess", and googling for "joey hess ts" brings up:

https://news.ycombinator.com/item?id=5314326

Which says it's in something called "moreutils"... Which is one of the 74,850
packages currently in Debian's repository. (aptitude search . | wc -l)

Let's see what it says:

So far, it includes the following utilities:
* chronic: runs a command quietly unless it fails
* combine: combine the lines in two files using boolean operations
* errno: look up errno names and descriptions
* ifdata: get network interface info without parsing ifconfig output
* ifne: run a program if the standard input is not empty
* isutf8: check if a file or standard input is utf-8
* lckdo: execute a program with a lock held
* mispipe: pipe two commands, returning the exit status of the first
* parallel: run multiple jobs at once
* pee: tee standard input to pipes
* sponge: soak up standard input and write to a file
* ts: timestamp standard input
* vidir: edit a directory in your text editor
* vipe: insert a text editor into a pipe
* zrun: automatically uncompress arguments to command

Is this a command you actually needed for something?

Rob
The command is in the status page of toybox under ?Not started yet? and marked 
as part of the yocto project. The reason I based the version I wrote off the 
moreutils command is because I couldn?t find documentation for the one in the 
yocto project, or any implementation of the command that wasn?t moreutils.

For use cases of the command, it can be used to create log files and measure 
the speed of parts of a command.

RFC3161

try

https://linuxcommandlibrary.com/man/ts
or
https://www.putorius.net/ts-command-add-convert-timestamps-linux.html

_______________________________________________
Toybox mailing list
Toybox@lists.landley.net
http://lists.landley.net/listinfo.cgi/toybox-landley.net

Reply via email to