Last active
March 3, 2022 22:37
-
-
Save jgomo3/762267a398bd27d22ef62281f588780f to your computer and use it in GitHub Desktop.
A dummy MLLP server and an MLLP wrapper
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 | |
# mllp-constantly-server port response | |
# | |
# Listen on port `port` for messages and response always the same content: | |
# whatever is in the `response` file. | |
# Supposing mllp-wrap to excecute the `mllp-wrap.sh` script in this gist. | |
while true; do mllp-wrap $2; done | nc -k -l $1 |
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 | |
cat <(printf '\x0B') $1 <(printf '\x1C\x0D') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment