File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Linux / UNIX and the fly likes JSP  with Unix Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "JSP  with Unix" Watch "JSP  with Unix" New topic

JSP with Unix

Arad Chear
Ranch Hand

Joined: Jan 05, 2007
Posts: 98
Hi Ranchers

i want to create web site to learn Unix/Linux commands
( if there is already website do that please tell me )

basically i have created JSP page to enter Unix command and then retreive the result from that command to the user

i have installed Solaris10 in my PC , but i don't know how to retreive the result to the JSP page

how i will connect JSP page with the Solaris ?

i am appreciated for any help
Thanks in Advance
Robert Hill
Ranch Hand

Joined: Feb 24, 2006
Posts: 94
So if I understand you correctly, you want clients to be able to execute commands on the server?

Don't do it.
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

Originally posted by Robert Hill:
Don't do it.

Bad idea, especially if you're not 100% sure of what you're doing.
Your question indicates that you're not.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17417

One of the main problems here is that if you setup a webapp that issues OS commands, it will run under the security context of the webapp server. Depending on the webapp server and the level of paranoia of the server administrators, this could actually give you less abilities than a real shell user would have or it could give you more - including the ability to seriously dames the OS, expose it and other servers on the network to attackers and sof forth.

A better way to learn Unix commands is to get someone to set up a remote shell account. These days "ssh" is very popular. You can get ssh client software for Windows, including a free program called puTTY.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: JSP with Unix
It's not a secret anymore!