Created
June 3, 2020 11:38
-
-
Save amcginlay/8e2c326ff4fcb34425cfd9719220fdac to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
yum install -y socat | |
socat TCP4-LISTEN:80,fork SYSTEM:' \ | |
echo HTTP/1.0 200 \ | |
echo \ | |
echo Response from $(hostname) at $(date '+%s.%N')' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment