Command Watcher

cmdwatch is a CLI tool to watch the output of a given command until certain conditions given by the user are satisfied. The conditions can be
- There is a change in output
- When the time limit exceeds
The output of the command will be shown in the console as well.
pip install cmdwatch
Usage
$ cmdwatch -d DELAY [-o OUTPUT_FILE] [-t TIMEOUT] [-s] <cmd>
Command Watcher Tool
optional arguments:
-h, --help show this help message and exit
-d DELAY, --delay DELAY
How long to wait until next execution
-o OUTPUT_FILE, --output OUTPUT_FILE
File where the output should be stored
-t TIMEOUT, --timeout TIMEOUT
For how many second should i watch
-s, --stop Pass this option if you want to stop checking whenever
there is a difference in output
If you want to store the command outputs to a file then pass the --output/-o with the file name
Example:
$ cmdwatch -d 2 -o ping_check.txt ping google.com
Above usage will execute the "ping google.com" command every 2 seconds and stores the output into file ping_check.txt
If you want to stop the execution when there is a change in the output then pass --stop/-s option
Example:
$ cmdwatch -d 2 -o ping_check.txt -s ping google.com
Metadata
Release files for cmdwatch 0.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cmdwatch-0.0.7.tar.gz | 3.5 kB | Without provenance | Details for cmdwatch-0.0.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cmdwatch-0.0.7-py3-none-any.whl | Python 3 | none | any | Details for cmdwatch-0.0.7-py3-none-any.whl |
Total release size: 7.9 kB
Release files / cmdwatch-0.0.7.tar.gz
| Download URL | cmdwatch-0.0.7.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0f35f95a79d904d0b758328eb097a65ca1c0b7397ebd9d456764c013b01dc5e5
|
|
BLAKE2b-256 checksum How to use checksums |
c46ce17f98df7d3c5b11b3f3950c5a05b7e3af2da6d7cd9e1c576dae9b66d9b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.9
|
Release files / cmdwatch-0.0.7-py3-none-any.whl
| Download URL | cmdwatch-0.0.7-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
50104f56940cff5ecc8530ccfe76192f600687fe51b20d0cb92c81a2cabd4ed3
|
|
BLAKE2b-256 checksum How to use checksums |
480cee2ee74862a6893124e6f2c9a390624c5f27d7e1df65fe131c98ed0a1a5d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.9
|
Security for cmdwatch 0.0.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.