Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/piyush1146115/shell-mirror

Take linux shell command as input, execute the command, and return the output of the command.
https://github.com/piyush1146115/shell-mirror

Last synced: about 1 month ago
JSON representation

Take linux shell command as input, execute the command, and return the output of the command.

Awesome Lists containing this project

README

        

# shell-mirror

```bash
curl --request POST \
--url http://localhost:8088/execute \
--header 'content-type: application/json' \
--data '{"command": "pwd"}'
```

```bash
curl --request POST \
--url http://localhost:8088/execute \
--header 'content-type: application/json' \
--data '{"command": "ls -l"}'
```

```bash
curl --request POST \
--url http://localhost:8088/execute \
--header 'content-type: application/json' \
--data '{"command": "curl http://localhost:8088"}'
```

```bash
curl --request POST \
--url http://localhost:8088/execute \
--header 'content-type: application/json' \
--data '{"command": "cat xyz.txt"}'
```