Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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`