Changes monitor for shell command outputs
Project description
diffs
diffs monitors for any changes in arbitrary shell command output between the initial state and the current output.
Installation
pip3 install diffs
Python 3.6 (or newer) is required.
Usage
diffs CMD
The initial CMD
output is stored at the beginning.
Then the command is run again periodically and the output is compared against the initial output.
If there are differences, they are shown in the standard diff format. The unchaged lines are not shown.
Examples
Show how many packets have been sent since the script has been started:
diffs ifconfig wlp2s0
Find new applications opening network ports (shows only changes between the initial state):
diffs sudo netstat -tulpn
Monitor changes in a file:
$ diffs cat /etc/resolv.conf
Difference between starting date and the current date:
diffs date
Finding newly spawned processes:
diffs ps a -o pid,cmd
Project details
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
File details
Details for the file diffs-0.2.0.tar.gz
.
File metadata
- Download URL: diffs-0.2.0.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce1513ff88d061d02eb65273158285975ebed57ebb7f329a3cb727625620438e |
|
MD5 | f4bdc27ab4ff2c070659d3c98289aa87 |
|
BLAKE2b-256 | 5f17327147e74c5fd0dd2db246e6ea2abf33985a5b603a1b9fe563c12fa8946d |
File details
Details for the file diffs-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: diffs-0.2.0-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 111000faecec3c791f42210f3bb34c96e2eabd9398b5c90d9db289d8ab79e807 |
|
MD5 | ef7f07e6d4cb204503977c613e1e7912 |
|
BLAKE2b-256 | 76051c40d9ca602c6a77d0e3461d959d940587c9f970335b797b301c23a5d551 |