[lug] Bash Scripting Ping

David L. Willson dlwillson at thegeek.nu
Sun Nov 8 16:57:52 MST 2020


I finally got a chance to play with this.

For me, these worked:
- ping yahoo.com | while read PINGLINE; do echo pingline $PINGLINE; done
- ping -O -D yahoo.com | while read PINGLINE; do echo pingline $PINGLINE; done

I tested Fedora natively, and debian, ubuntu, and opensuse/leap in Docker.

I didn't need to kill any buffering anywhere, so I'm curious about where/when that is needed. I also wonder whether doing it in Docker somehow invalidates the results. I also also wonder whether doing it in Docker is a good way for my macOS-loving friends to get around the limitations of their preferred OS. ;-)


More information about the LUG mailing list