Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 584 Bytes

File metadata and controls

24 lines (16 loc) · 584 Bytes

This service creates HTTP server to execute a shell script placed near to it in scripts folder.
No need to install any dependencies (except NodeJS itself).

Use the following command to start the server:

node run_sh_server.js

Run the default script via HTTP (scripts/default.sh):

curl http://localhost:3000

Or specify a required script name in url:

curl http://localhost:3000/hello.sh

Tips: