cmdwatch-0.0.7
توضیحات
A CLI tool to watch for command outputs and store them to a file for further analysis
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | cmdwatch-0.0.7 |
| نام | cmdwatch |
| نسخه کتابخانه | 0.0.7 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Karthik E C |
| ایمیل نویسنده | eckarthik39@gmail.com |
| آدرس صفحه اصلی | https://github.com/eckarthik/cmdwatch |
| آدرس اینترنتی | https://pypi.org/project/cmdwatch/ |
| مجوز | - |
# Command Watcher [](https://www.python.org/downloads/) [](https://pepy.tech/project/cmdwatch) [](https://pepy.tech/project/cmdwatch/week)
**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
1. There is a change in output
2. When the time limit exceeds
The output of the command will be shown in the console as well.
```
pip install cmdwatch
```
## Usage
```bash
$ 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:
```bash
$ 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:
```bash
$ cmdwatch -d 2 -o ping_check.txt -s ping google.com
```
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl cmdwatch-0.0.7:
pip install cmdwatch-0.0.7.whl
نصب پکیج tar.gz cmdwatch-0.0.7:
pip install cmdwatch-0.0.7.tar.gz