Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » Pyterm: run bash from browsers locally
- ninjaMAR
-
1000+ posts
Pyterm: run bash from browsers locally
Installation
Run below in the terminal
Running
Run below in the terminal
Viewing
Navigate to localhost:8080 in a browser

Type code in the box that says “type code here” and click run
Help
Use this topic
Run below in the terminal
pip install flask
git clone https://github.com/ninjamar/pyterm.git
Run below in the terminal
cd pyterm
python pyterm.py localhost 8080
Navigate to localhost:8080 in a browser

Type code in the box that says “type code here” and click run
Help
Use this topic
Last edited by ninjaMAR (May 3, 2021 23:31:50)
- Chiroyce
-
1000+ posts
Pyterm: run bash from browsers locally
Do we need to install git, then clone it?
- 9gr
-
1000+ posts
Pyterm: run bash from browsers locally
download it from the source if you hate git Do we need to install git, then clone it?
- Raihan142857
-
1000+ posts
Pyterm: run bash from browsers locally
what does the name mean
edit: nevermind im dumb
edit: nevermind im dumb
Last edited by Raihan142857 (May 5, 2021 00:37:43)
- skymover1239
-
500+ posts
Pyterm: run bash from browsers locally
Is this possible to do on a windows? (which I'm still using unfortunately)
- ninjaMAR
-
1000+ posts
Pyterm: run bash from browsers locally
i heked hekcer
should work. i use subprocces.Popen Is this possible to do on a windows? (which I'm still using unfortunately)
- Chiroyce
-
1000+ posts
Pyterm: run bash from browsers locally
AFAIK - Bash is something that's only on Unix, so it may not work. Is this possible to do on a windows? (which I'm still using unfortunately)
Also - you can run Command prompt scripts in this, if you're using Windows.
Also bump
Last edited by Chiroyce (Oct. 19, 2021 14:27:33)
- --Explosion--
-
1000+ posts
Pyterm: run bash from browsers locally
Why not run bash in the command line that was made for it?
Edit: My understanding is that this simply proxies the text the user types in the textbox to the python script which then runs it as a bash script on the computer hosting the server. It would be cool if the code somehow compiled bash to JavaScript or something the browser could run.
Edit: My understanding is that this simply proxies the text the user types in the textbox to the python script which then runs it as a bash script on the computer hosting the server. It would be cool if the code somehow compiled bash to JavaScript or something the browser could run.
Last edited by --Explosion-- (Oct. 20, 2021 02:33:17)
- MagicCrayon9342
-
1000+ posts
Pyterm: run bash from browsers locally
and linux AFAIK - Bash is something that's only on Unix, so it may not work.
- Chiroyce
-
1000+ posts
Pyterm: run bash from browsers locally
Bruh Linux IS UNIX. And so is macOS. Windows uses NTand linux AFAIK - Bash is something that's only on Unix, so it may not work.
- Chiroyce
-
1000+ posts
Pyterm: run bash from browsers locally
They aren't the same, but macOS and Linux are derived from Unix. They are not the same


- Discussion Forums
- » Advanced Topics
-
» Pyterm: run bash from browsers locally