Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How feasible would it be to create a bash shell in a browser?

Primarily, I'm a C/C++ programmer on Unix machines... But I'd kill for browser based shell access to a linux box...

So, the question is: How hard would it be, and what approaches would be the best for building real shell level access into a web page? Flash? Javascript?

I know this is really all opinion, but I'm curious if people think it might be possible?

like image 622
dicroce Avatar asked Oct 24 '09 21:10

dicroce


People also ask

What is the bash shell and why is it important?

Bash (also known as the “Bourne Again SHell”) is an implementation of Shell and allows you to efficiently perform many tasks. For example, you can use Bash to perform operations on multiple files quickly via the command line.

Is bash a good shell?

The full form of the word “Bash” is “Bourne-Again Shell,” and it is one of the best open-source shells available for Linux. Bash is provided as a default shell in multiple Linux distros, such as Arch Linux, Ubuntu, and several other standard Linux distros.

Do you usually prefer sh or bash under what circumstances would your answer change?

We should use sh if we want our language to be compatible with multiple systems. The sh script will most like run on bash also without modifications as bash is backward compatible with sh. sh is the most portable scripting language that works on most POSIX/Unix/Linux systems.

How does the bash shell work?

Bash reads input from the terminal when interactive, and from the script file specified as an argument otherwise. When interactive, bash allows the user to edit command lines as they are typed in, using familiar key sequences and editing commands similar to the Unix emacs and vi editors.


1 Answers

There are a few scripts that can do this :

  • http://antony.lesuisse.org/software/ajaxterm/
  • http://anyterm.org/index.html
  • http://www-personal.umich.edu/~mressl/webshell/index.html
  • http://www.techenclave.com/operating-systems/web-based-shell-interfaces-870.html
like image 162
Fabien Ménager Avatar answered Nov 15 '22 20:11

Fabien Ménager