» Store » Blog » Products  
StackFoundry LCC
 
ptee - Parallel shell pipe tee

ptee is a UNIX shell tool similar to tee, but allows you to invoke multiple sub-shells in parallel. Standard input to ptee is copied to both normal standard output, and to each sub-shell running under ptee. Each sub-command is run concurrently, and fed the same input. The output of each sub-command is thrown away, but any shell expression can be used - such as redirecting to a file.

Note that there are some limits on ptee. The shell pipeline will only execute at the pace of the slowest sub-command; otherwise large amounts of data would have to be buffered. Also, the shell that ptee invokes requires 'sh' like semantics, such as supporting the -c option.

For more details on how to use ptee, please see the manual page for ptee in HTML.

Install

From the source archive, ptee is only a make install away. If you wish to not install to /usr/local, you can specify a PREFIX= to the make command.

Download

Version 1.0 is available for download. It is available as a tiny source tarball, with included man page and Makefile.

Download location: http://dl.stackfoundry.org/ptee/

Repository

ptee development (or lack thereof) is tracked in git. To clone:

git clone git://git.stackfoundry.com/ptee.git

You can also access the gitweb instance at stackfoundry.org gitweb.