Author: Malte Bublitz
Language/File type: Bash script
Description
Query my QOTD service (German language)
Code
1 2 3 4 5 6 7 8 9 10 11 12 | #!/bin/bash # # https://www.xmodulo.com/tcp-udp-socket-bash-shell.html # QOTD_HOST="rt3x.de" QOTD_PORT=17 exec 3<>/dev/tcp/$QOTD_HOST/$QOTD_PORT cat <&3 exec 3<&- exec 3>&- |