Verified Commit a2fc9a60 authored by Fabio Bonfiglio's avatar Fabio Bonfiglio 💾
Browse files

Document command options

parent 72432200
# `checknet`
[![GNU AGPLv3](https://img.shields.io/badge/license-AGPLv3-blue)](https://www.gnu.org/licenses/agpl-3.0.txt)
A simple bash script to check and continuously monitor internet connectivity.
A simple bash script to check and continuously monitor internet connectivity, to be used on a server or a headless node.
It uses `nslookup` and records probe entries in a `csv` formated file.
## Usage
```sh
$ ./checknet
$ ./checknet [-h][-q][-h <remoteHost>][-f <fileName>]
```
Option | Description
:-----:|:------------
-h | Display help message and exit.
-q | Quiet mode. Doesn't show live log.
-r remoteHost | Use a custom remote host, instead of default `google.com`
-f fileName.csv | Custom destination file. Default is `checknet.csv`
## TODO
Code/implement and document !
- [x] First implementation
- [ ] Verify csv extension if other file name is specified
- [ ] Test with `ping` and a regexp to parse timing, insteat of just `nslookup`
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment