shell2http

Execute shell commands via HTTP server with easy request routing

brewmacoslinux
Try with needOr install directly
Source

About

Executing shell commands via HTTP server

Commands

shell2http

Examples

Start HTTP server that executes a simple echo command on GET request$ shell2http -port=8080 /hello 'echo Hello World'
Map multiple shell commands to different HTTP endpoints$ shell2http -port=8080 /date 'date' /uptime 'uptime' /disk 'df -h'
Execute command with query parameters passed as arguments$ shell2http -port=8080 /grep 'grep $1 /var/log/syslog'