1 * ping_offline.sh documentation
3 #+TITLE: ping_offline.sh documentation
4 #+AUTHOR: Steven Baltakatei Sandoval
6 #+EMAIL:baltakatei@gmail.com
10 Created by [[https://baltakatei.com][Steven Baltakatei Sandoval]] on
12 under a [[https://creativecommons.org/licenses/by-sa/4.0/][CC BY-SA 4.0]] (ðŸ…🅯🄎4.0) license and last updated on
17 ~ping_offline.sh~ is a small Bash script meant to indicate when the
18 machine it runs on is able to ping a remote server.
21 | Version | Description |
22 |---------+-------------------------|
23 | 0.0.1 | Initial working script. |
26 Sometimes, my machines are on a network that is temporarily
27 disconnected for various reasons. I'd like to know approximately when
28 they come back online by pinging a remote server; once a successful
29 ping is established, I can stop further pings. However, the ~ping~
30 executable available (provided by the package ~iputils-ping~) on my
31 Pop!_OS 22.04 LTS machine throws an error if the machine is completely
32 offline; therefore, I wrote the script to regularly try the command
33 until it succeeds at least once.
36 - ~iputils-ping~ package (Version: 3:20211215-1)