Skip to content
← Back to Community
how can I run a bash/shell script on a web page
Profile icon
CodingEpic

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

Answered by Highwayman [earned 5 cycles]
View Answer
Voters
Profile icon
CodingEpic
Comments
hotnewtop
Profile icon
Highwayman

you could take a look at something like this.

Profile icon
CodingEpic

@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

Profile icon
Highwayman

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

Profile icon
CodingEpic

@Highwayman Jus wanna bypass school systems

Profile icon
Highwayman

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

Profile icon
Coder100

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

Profile icon
ch1ck3n

@Coder100 then how replit secure

Profile icon
CodingEpic
Profile icon
MrVoo

Why would you want to do that?

Profile icon
CodingEpic

@MrVoo Because you can run chrome with bash using sandboxes