command-line tool to run a command repeatedly
Project description
shrep lets you run a shell command repeatedly, or until it fails. It’s intended for diagnosing intermittent failures – e.g. say you have a C program that seg faults once every hundred runs or so, and you need to reproduce it to fix it:
shrep -n 100 ./myprog
shrep can also run your program until it fails rather than a fixed number of repetitions. It can capture stdout and stderr to avoid cluttering your terminal. It can run child processes in parallel. See the man page for the full story:
groff -man -Tascii shrep.1 | less
Installation
shrep is currently a single-file Python script. The easiest way to install it is:
pip install --user shrep
That will put the executable in ~/.local/bin.
It also installs a man page, which you can read with
MANPATH=~/.local/share/man man shrep
(At least, that works for me on Ubuntu.)
Contributing
Find a bug? Want to implement a feature? Send me email! If a lot of people like it, I’ll put it on github or something.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file shrep-0.1.tar.gz.
File metadata
- Download URL: shrep-0.1.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6feb106c958eeaa8c85da40d68fd5fb60cec3edcb8d189d22fe01d96f0cbe126
|
|
| MD5 |
0fde68065cd23745ef35da840f5d70fd
|
|
| BLAKE2b-256 |
b312c40e2482d1dbc45e7dc327f3d4854191fa6fb464a7a5800ac45ae62a0c2c
|
File details
Details for the file shrep-0.1-py3-none-any.whl.
File metadata
- Download URL: shrep-0.1-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b3c47adf736159f43b1fe44941654e347b808f8f88136868fa51a9c8e53ab8b
|
|
| MD5 |
3397f125f72fe41b9d4a89c0bf8614b9
|
|
| BLAKE2b-256 |
3a4dcbe323b0fb2073a60b9f5bbf03d58282a321646c3e5d134720cfc1d177a4
|