Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/piyush1146115/shell-mirror
- Owner: piyush1146115
- License: apache-2.0
- Created: 2023-03-22T13:00:31.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-03T12:54:12.000Z (almost 2 years ago)
- Last Synced: 2024-11-12T02:08:25.319Z (3 months ago)
- Language: Go
- Homepage:
- Size: 38.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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"}'
```