• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

JSP with Unix

 
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Saloon Keeper
Posts: 28661
211
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic