Executing shell commands via HTTP server
Project description
shell2http
HTTP-server to execute shell commands. Designed for development, prototyping or remote control. Settings through two command line arguments, path and shell command. By default bind to :8080.
Usage
shell2http [options] ["shell command" for /] /path "shell command" /path2 "shell command2" ...
options:
-p, --port NNNN : port for http server ( default 8080 )
Install
pip install shell2http
Examples
shell2http 'notify-send Hello root'
shell2http -p3000 'notify-send Hello root' /path 'canberra-gtk-play -i desktop-login'
shell2http -p3000 /path 'canberra-gtk-play -i desktop-login'
Acknowledgements
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
shell2http-1.3.tar.gz
(3.1 kB
view details)
Built Distribution
File details
Details for the file shell2http-1.3.tar.gz
.
File metadata
- Download URL: shell2http-1.3.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8232beff1c2d42adec4f7cd48687bc3cf0a24546cb82a5e5cbeda5a5605d90fc |
|
MD5 | 800ef017f5300585100656e9705cbff2 |
|
BLAKE2b-256 | 5d0bc50b2fd143dfd7e88197c5096fb164da3fae7c7c5bb2622a9724bbe96879 |
File details
Details for the file shell2http-1.3-py3-none-any.whl
.
File metadata
- Download URL: shell2http-1.3-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1de55d18187ef1a9215fb982010f65852c1b9a01df81f86bd074b26be3150bc0 |
|
MD5 | ce0284a1cdf3af1371e9a7925996c72e |
|
BLAKE2b-256 | 351b0ade0dc6fcd0932655261f22281cedefff638c47b80506b0f74a9d5aec48 |