Small script that will wait for a TCP connection and respond with the contents of the configured directory.
|
%!s(int64=11) %!d(string=hai) anos | |
---|---|---|
.gitignore | %!s(int64=8) %!d(string=hai) anos | |
LICENSE | %!s(int64=8) %!d(string=hai) anos | |
README.md | %!s(int64=8) %!d(string=hai) anos | |
ls_echo.py | %!s(int64=8) %!d(string=hai) anos | |
ls_echo.rb | %!s(int64=8) %!d(string=hai) anos |
Small script that will wait for a TCP connection and respond with the contents of the configured directory.
Usage: ./ls_echo.rb <port> <directory>
./ls_echo.py \<port\> \<directory\>