{"repo":"msoap/shell2http","free":true,"listed":false,"github":"https://github.com/msoap/shell2http","clone":"git clone https://github.com/msoap/shell2http.git","description":"Executing shell commands via HTTP server","language":"Go","stars":1499,"topics":["golang","cli","http","server","proxy","shell","docker","bash"],"license":"MIT","category":"cli-tools","readme_excerpt":"shell2http ========== HTTP-server designed to execute shell commands. It is suitable for development, prototyping or remote control, facilitates rapid iteration and testing of shell-based functionalities. Easy to set up using just two command-line arguments: URL-path and shell command. Next, when an HTTP request is made for the specified path, the stdout of the shell script will be returned, that's all. Usage ----- shell2http [options] /path \"shell command\" /path2 \"shell command2\" ... options: -host=\"host\" : host IP for http server (default bind to all interfaces) -port=NNNN : port for http server, 0 - to receive a random port (default 8080) -form : parse query into environment vars, handle uploaded files -form-check : regexp for check form fields (pass only vars that match the regexp) -cgi : run scripts in CGI-mode: - set environment variables with HTTP-request information - write POST PUT PATCH-data to script STDIN (if is not set -form) - parse headers from script (eg: \"Location: URL\\n\\n\") -export-vars=var : export environment vars (\"VAR1,VAR2,...\") by default export PATH, HOME, LANG, USER, TMPDIR -export-all-vars : export all current environment vars -no-index : don't generate index page -add-exit : add /exit command -log=filename : log filename, default - STDOUT -shell=\"shell\" : shell for execute command, \"\" - without shell (default \"sh\") -cache=N : caching command out for N seconds -one-thread : run each shell command in one thread -show-errors : show the standard output","default_branch":null,"files":null,"tree":[],"storefront":"/r/msoap","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/msoap/shell2http/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}