Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ajhenri/inet_usage_test
Small process that will count network I/O. This is a test and not meant to be an accurate representation.
https://github.com/ajhenri/inet_usage_test
Last synced: 14 days ago
JSON representation
Small process that will count network I/O. This is a test and not meant to be an accurate representation.
- Host: GitHub
- URL: https://github.com/ajhenri/inet_usage_test
- Owner: ajhenri
- Created: 2020-07-03T15:29:20.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-07-03T15:30:15.000Z (over 4 years ago)
- Last Synced: 2024-10-20T17:20:23.463Z (2 months ago)
- Language: Python
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Inet Usage Counter Test
When the script starts, the counter is initialized to 0.
## Mac OS
Option to run as a daemon process.
#### com.ajhenri.inet_usage_test.plist
```
EnvironmentVariables
INET_USAGE_PATH
/Users/youruser/Documents/inet_usage_test
Label
com.ajhenri.inet_usage_test
ProgramArguments
/Users/youruser/Documents/inet_usage_test/venv/bin/python3
/Users/youruser/Documents/inet_usage_test/inet_usage_test.py
RunAtLoad
KeepAlive
LaunchOnlyOnce
StandardOutPath
/Users/youruser/Documents/inet_usage_test/logs/output.log
StandardErrorPath
/Users/youruser/Documents/inet_usage_test/logs/error.log
UserName
youruser
GroupName
yourgroup
```
### To run
`sudo launchctl load com.ajhenri.inet_usage_test.plist`### To stop
`sudo launchctl unload com.ajhenri.inet_usage_test.plist`