• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP with Unix

 
Arad Chear
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18108
52
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic