Ping Host¶
ping-host pings a host a few times and sends the result back. It is one of the
bundled functions you can use from a button as
it is.
- Runs:
ping -c {{.count}} {{.host}} host(required): hostname or IPcount(optional, default4): number of packets
The function file
Add a button¶
Ping a fixed host three times
count is numeric, so it does not need quotes. You can also leave it out to use
the default value 4:
Use the default count
Related¶
- Rules — how defaults and required values behave
- Custom functions — all five bundled examples