I have this super simple TCP server that takes requests and returns the output of
#!/bin/bash while true ; do nc -l -p 1234 -e handler.sh; done
I'd like to port the requested path to
handler.sh as a parameter, so that if
0.0.0.0:1234/foo/bar was hit,
handler.sh would know.
Is this possible?