https://github.com/marzocchi/rig
The Rig executes programs and joins the output in a single stream.
https://github.com/marzocchi/rig
python rig shell
Last synced: about 2 months ago
JSON representation
The Rig executes programs and joins the output in a single stream.
- Host: GitHub
- URL: https://github.com/marzocchi/rig
- Owner: marzocchi
- License: mit
- Created: 2020-07-15T22:44:06.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-04-13T20:57:06.000Z (about 3 years ago)
- Last Synced: 2025-10-26T06:49:55.900Z (8 months ago)
- Topics: python, rig, shell
- Language: Python
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
The Rig
===
The Rig pipes `STDIN` to some programs listed in a `Rigfile` and presents their `STDOUT` and `STDERR`
in a single stream.
Usage
---
```shell
# report mode, for programs that produce document-like output
./rig.py report Rigfile
# stream mode, for programs that produce a continuos stream of text,
# like `tail` (use CTRL-C to stop)
./rig.py stream Rigfile
```
A `Rigfile` is a list of programs to execute, one per line and prefixed by a label.
```
cat > Rigfile < Rigfile.sh <