Discuss Scratch

ninjaMAR
Scratcher
1000+ posts

Pyterm: run bash from browsers locally

Installation
Run below in the terminal
pip install flask
git clone https://github.com/ninjamar/pyterm.git
Running
Run below in the terminal
cd pyterm
python pyterm.py localhost 8080
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

Last edited by ninjaMAR (May 3, 2021 23:31:50)

Chiroyce
Scratcher
1000+ posts

Pyterm: run bash from browsers locally

Do we need to install git, then clone it?
9gr
Scratcher
1000+ posts

Pyterm: run bash from browsers locally

Chiroyce wrote:

Do we need to install git, then clone it?
download it from the source if you hate git
ninjaMAR
Scratcher
1000+ posts

Pyterm: run bash from browsers locally

bump
Raihan142857
Scratcher
1000+ posts

Pyterm: run bash from browsers locally

what does the name mean
edit: nevermind im dumb

Last edited by Raihan142857 (May 5, 2021 00:37:43)

gdpr5b78aa4361827f5c2a08d700
Scratcher
1000+ posts

Pyterm: run bash from browsers locally

hekcer
skymover1239
Scratcher
500+ posts

Pyterm: run bash from browsers locally

Is this possible to do on a windows? (which I'm still using unfortunately)
ninjaMAR
Scratcher
1000+ posts

Pyterm: run bash from browsers locally

potatophant wrote:

hekcer
i heked

skymover1239 wrote:

Is this possible to do on a windows? (which I'm still using unfortunately)
should work. i use subprocces.Popen
Chiroyce
Scratcher
1000+ posts

Pyterm: run bash from browsers locally

skymover1239 wrote:

Is this possible to do on a windows? (which I'm still using unfortunately)
AFAIK - Bash is something that's only on Unix, so it may not work.
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--
Scratcher
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.

Last edited by --Explosion-- (Oct. 20, 2021 02:33:17)

MagicCrayon9342
Scratcher
1000+ posts

Pyterm: run bash from browsers locally

Chiroyce wrote:

AFAIK - Bash is something that's only on Unix, so it may not work.
and linux
Chiroyce
Scratcher
1000+ posts

Pyterm: run bash from browsers locally

MagicCrayon9342 wrote:

Chiroyce wrote:

AFAIK - Bash is something that's only on Unix, so it may not work.
and linux
Bruh Linux IS UNIX. And so is macOS. Windows uses NT
MagicCrayon9342
Scratcher
1000+ posts

Pyterm: run bash from browsers locally

Chiroyce wrote:

MagicCrayon9342 wrote:

Chiroyce wrote:

AFAIK - Bash is something that's only on Unix, so it may not work.
and linux
Bruh Linux IS UNIX. And so is macOS. Windows uses NT
They are not the same

Source 1
Source 2
Chiroyce
Scratcher
1000+ posts

Pyterm: run bash from browsers locally

MagicCrayon9342 wrote:

They are not the same
They aren't the same, but macOS and Linux are derived from Unix.



Powered by DjangoBB