Skip to content

pty - A tool to solve the "line buffering problem" forcing arbitrary commands to flush their output. Handy in scripts and command lines where you want to see unbuffered output run-time

Notifications You must be signed in to change notification settings

pmorch/pseudo_tty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pseudo_tty

Here are two tiny utilities, pty and timestamplines.

In concert, they allow you to timestamp the output of an arbitrary command like so:

$ pty some-command | timestamplines

or

$ pty some-command | timestamplines -f > log &
$ tail -f log

Scripts

pty

Run a script so that it thinks it is is connected to a terminal, and therefore flushes its output after every line. It solves the "line buffering problem".

timestamplines

Print all lines on STDIN to STDOUT but prepend a time stamp.

slowprint

Also provided is slowprint to test it

About

pty - A tool to solve the "line buffering problem" forcing arbitrary commands to flush their output. Handy in scripts and command lines where you want to see unbuffered output run-time

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages