aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "JSP  with Unix" Watch "JSP  with Unix" New topic
Author

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
Sheriff

Joined: Dec 11, 2004
Posts: 13410

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


Agreed.
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: 16142
    
  21

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSP with Unix