pingwait

command module
v0.0.0-...-6bca968 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2018 License: BSD-3-Clause Imports: 5 Imported by: 0

README

pingwait

pingwait continuously ping a IP address until it either times out, or receives a reply. This is useful for running a command once a server comes online.

Usage

Example usage: pingwait -t 10 1.1.1.1

-t Optional argument specifying the amount of seconds before pingwait times out. Defaults to never timing out.

Exit codes

0: Received reply
1: Invalid argument specified
2: Timeout was reached
50: Internal error

Note

This command has to either be run as root or have the capability CAP_NET_RAW. The capability can be given to pingwait by running setcap cap_net_raw=+ep pingwait

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL