Skip to content

Instantly share code, notes, and snippets.

@amcginlay
Created June 3, 2020 11:38
Show Gist options
  • Save amcginlay/8e2c326ff4fcb34425cfd9719220fdac to your computer and use it in GitHub Desktop.
Save amcginlay/8e2c326ff4fcb34425cfd9719220fdac to your computer and use it in GitHub Desktop.
#!/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