LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-06-2005, 04:59 PM   #1
BlackHatRob
Member
 
Registered: Feb 2005
Posts: 36

Rep: Reputation: 15
Access unix shell using php or javascript


I am interested in a way to allow access to a unix shell by using either php or javascript (or both). What I am looking for is a way to display an interface similar to what people see when they use programs such as ssh for workstations or putty. Even if it just has a window that displays the output and a line to give input, that would be great.

Does anyone have any ideas?
 
Old 11-06-2005, 05:08 PM   #2
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 51
PHP can do that. Check out the "system" or "exec" functions. Also, this sounds like a bad security problem. Why can't you just use SSH? (There are Java applet SSH clients like MindTerm).
 
Old 11-06-2005, 06:18 PM   #3
BlackHatRob
Member
 
Registered: Feb 2005
Posts: 36

Original Poster
Rep: Reputation: 15
I work at a university and the thought is to provide a 'web portal' so that students can access their email, unix filesystem, and other things through the web so as to not be limited to using the applications such as ssh.

Do the php commenda you mentioned allow the output to be returned?
 
Old 11-06-2005, 07:02 PM   #4
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 51
I strongly recommend that you put a Java SSH client on your website, as only SSH will offer the kind of security that you need. I know many universities and organizations that use them. It is really convenient (and secure) for the students; they only need a browser with Java to have it work. You should check out one of these:
* MindTerm (free for personal use)
* JavaSSH

Also, for email, there are many good free webmail programs that you can use.

Last edited by spooon; 11-06-2005 at 07:03 PM.
 
Old 11-06-2005, 10:14 PM   #5
lqorg_user
LQ Newbie
 
Registered: Nov 2005
Distribution: debian sarge
Posts: 3

Rep: Reputation: 0
You may want to install horde since the horde project has everything you want to do.

Visit

http://www.horde.org/
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
JavaScript & PHP Gerardoj Programming 1 06-11-2004 12:02 AM
PHP and JavaScript Gerardoj Programming 4 04-22-2004 02:02 PM
PHP and or Javascript Can they be used the same way? ElementNine Programming 1 03-05-2004 08:22 AM
javascript like shell script? jpbarto Programming 5 07-31-2003 05:30 PM
Shell access thru php ka_alucard Slackware 1 05-25-2003 05:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration