Ask coding questions

← Back to all posts
how can I run a bash/shell script on a web page
CodingEpic (20)

how can I run a bash/shell script on a web page?

Answered by Highwayman (1501) [earned 5 cycles]
View Answer
Comments
hotnewtop
Highwayman (1501)

you could take a look at something like this.

CodingEpic (20)

@Highwayman Cool! I checked it out! But I still dont understand it could you help me? (I am trying to run this bash code on a web page: ---chromium-browser --no-sandbox https://google.com

Highwayman (1501)

are...you trying to just make a vpn type thing? There are much easier ways of connecting to a Repl than what I just gave you. @CodingEpic

CodingEpic (20)

@Highwayman Jus wanna bypass school systems

Highwayman (1501)

yeah, instead of doing that, there's a way to access the screen that's brought up by that in the Repl docs: https://docs.replit.com/hosting/streaming-native-graphics-vnc
Just stick the command in a normal bash Repl and then connect using NoVNC as it says in those docs and that'll probably work like you want.
@CodingEpic

Coder100 (18917)

You can't do that securely, but you could make a post request to a server you set up to execute it.

MrVoo (95)

Why would you want to do that?

CodingEpic (20)

@MrVoo Because you can run chrome with bash using sandboxes