
요청을 수락하고 다음 출력을 반환하는 매우 간단한 TCP 서버가 있습니다 handler.sh
.
#!/bin/bash
while true ; do nc -l -p 1234 -e handler.sh; done
handler.sh
요청된 경로를 매개변수로 포팅하고 싶으므로 0.0.0.0:1234/foo/bar
해당 경로에 도달하면 handler.sh
알려지게 됩니다.
가능합니까?
감사해요:)
요청을 수락하고 다음 출력을 반환하는 매우 간단한 TCP 서버가 있습니다 handler.sh
.
#!/bin/bash
while true ; do nc -l -p 1234 -e handler.sh; done
handler.sh
요청된 경로를 매개변수로 포팅하고 싶으므로 0.0.0.0:1234/foo/bar
해당 경로에 도달하면 handler.sh
알려지게 됩니다.
가능합니까?
감사해요:)