[go: up one dir, main page]

Skip to content

Check network connectivity and report via exit code

License

Notifications You must be signed in to change notification settings

jakewarren/amionline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

amionline

GitHub release MIT License Go Report Card PRs Welcome

Check network connectivity and report via exit code

Install

Option 1: Binary

Download the latest release from https://github.com/jakewarren/amionline/releases/latest

Option 2: From source

go get github.com/jakewarren/amionline

Usage

Usage in a bash one-liner:

amionline -http && echo "connected" || echo "offline"
❯ amionline -h
Usage of amionline:
  -dns
    	check dns resolution
  -domain string
    	domain name to query (default "httpbin.org")
  -http
    	check url for 200 status code
  -verbose
    	verbose output
  -version
    	display version

Background

I created this utility for use in automated jobs that require internet connectivity to work; this program makes it easy to add connectivity checking to other programs.

Changes

All notable changes to this project will be documented in the changelog.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

License

MIT © 2018 Jake Warren