This file contains hidden or 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
| #!/usr/bin/env bash | |
| # consider if the server is passing a file like | |
| while true; do nc -l 10000 <<<"hi"; done | |
| # on our client side, we can consume this using nc | |
| nc 10.0.0.1 10000 |