Ping ok

SolidGroundUX DocumentationSolidGroundUX
NL

fn: sgnd_ping_ok

Purpose

Test whether a host responds to a single ping.

Arguments

  • $1 — Hostname or IP address.

Returns

  • 0 when ping succeeds; non-zero otherwise.

Usage

  sgnd_ping_ok "127.0.0.1"