[Toybox] [PATCH] A implementaion of the ts command
Oliver Webb
aquahobbyist at proton.me
Fri Sep 8 06:10:46 PDT 2023
Sent with Proton Mail secure email.
------- Original Message -------
On Friday, September 8th, 2023 at 2:38 AM, Rob Landley <rob at 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.
More information about the Toybox
mailing list