LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 03-05-2009, 09:34 AM   #1
robin singh
LQ Newbie
 
Registered: Sep 2008
Posts: 5

Rep: Reputation: 0
how to run system commands from jsp page


i have a jsp page in which there are two text boxes.In first text box user nters remote machines ip address and in second text box he provides password and there is button named connect.after clicking on "connect" user should remotely login into pc whose ip address and password was provided.
how can i implement this

Last edited by robin singh; 03-06-2009 at 12:39 AM.
 
Old 03-05-2009, 11:45 AM   #2
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 15,102

Rep: Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719
Quote:
Originally Posted by robin singh View Post
i have a jsp page in which there are two text boxes.In first text box user nters remote machines ip address and in second text box he provides password and there is button named connect.after clicking on "connect" user should remotely login into pc whose ip address and password was provided.
Ok...what problems are you having with this page? Or are you asking us to write it for you?

Post what you've got so far, with what error(s) you're getting, and we can try to help.
 
Old 03-06-2009, 12:49 AM   #3
robin singh
LQ Newbie
 
Registered: Sep 2008
Posts: 5

Original Poster
Rep: Reputation: 0
i want the code.i have just started yesterday and i need it urgently.
 
Old 03-06-2009, 11:46 AM   #4
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 15,102

Rep: Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719
Quote:
Originally Posted by robin singh View Post
i want the code.i have just started yesterday and i need it urgently.
Then you should have started sooner. I doubt anyone here is going to write your code for you, without getting paid. If this is your project, it's up to you to accomplish.

If you want a hand up, we'll be glad to give you help. If you want a hand OUT, good luck.
 
Old 03-06-2009, 10:33 PM   #5
robin singh
LQ Newbie
 
Registered: Sep 2008
Posts: 5

Original Poster
Rep: Reputation: 0
i want it for my project so plz provide me the sources(e-books) where i can start from.
 
Old 03-06-2009, 10:43 PM   #6
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 15,102

Rep: Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719
Quote:
Originally Posted by robin singh View Post
i want it for my project so plz provide me the sources(e-books) where i can start from.
If this is a school project, you should already have your textbooks and class material. If this is a work project, try Google.
 
Old 03-07-2009, 05:00 AM   #7
robin singh
LQ Newbie
 
Registered: Sep 2008
Posts: 5

Original Poster
Rep: Reputation: 0
i have jsp book as well as for linux but in none of them i could find how to run the linux commands from jsp page and i have searched on google too but i could not find what i am looking for.So sir if you know the name of the books plz let it will be great help from ur side.thanks
 
Old 03-07-2009, 06:56 AM   #8
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 5.4, Mac OS 10.4 (tiger)
Posts: 1,005

Rep: Reputation: 79
This sounds like an extremely bad way to do things, too bad even for a school project... at least I would hope. JSP will not handle this easily as your talking about establishing remote connections what by jsp just gives a shiver of unsecured connections. I mean what protocol are you trying to use to connect with as well... ssh, remote desktop protocol, vnc... JSP isn't built to handle any of these and certainly never should be used to handle any of these types of connections. If this is a project you made yourself then you should go back to the drawing board since any project like this is just an instant fail, if your lecturer gave you this to do then you should slap them for doing stupid things...

If this isn't what you meant then you need to clearly state exactly it is what you are doing and why since you won't be able to do this right if you don't really know what you are trying to do!
 
Old 03-07-2009, 11:28 AM   #9
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 15,102

Rep: Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719
Quote:
Originally Posted by robin singh View Post
i have jsp book as well as for linux but in none of them i could find how to run the linux commands from jsp page and i have searched on google too but i could not find what i am looking for.So sir if you know the name of the books plz let it will be great help from ur side.thanks
You need to figure out how to run an external program. That's in your books, and is easily available on the web. HINT: JSP can't do it alone, but Java can help.

And again...POST WHAT YOU'VE WRITTEN.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Add a notice of the top 20 commands to check your unix system on the front page t3gah LQ Suggestions & Feedback 1 03-21-2005 09:23 AM
can a JSP page implement an interface? eantoranz Programming 2 11-09-2004 11:19 AM
Run some commands on system shutdown luizrolla Linux - Newbie 1 07-12-2004 08:42 PM
Want to run debugger through JSP page... kirti Linux - Software 0 06-10-2004 08:25 AM
adding new user from jsp page mukit Programming 3 05-23-2002 09:04 AM


All times are GMT -5. The time now is 03:57 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration