LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-04-2011, 04:10 AM   #1
ramesh14
Member
 
Registered: Apr 2008
Location: Hyderabad
Distribution: RHEL5,Fedora 8/9
Posts: 119
Blog Entries: 1

Rep: Reputation: 15
Question how to run test.jsp file in comand line interface on Linux


hi,

I am using tomcat6 server os is fedora9 i need to run test.jsp file every 20 minits i assigned the cron job */20 * * * * wget http://<my host>/containfolder/recurring.jsp but, its take long time so i need to run test.jsp file in linux command prompt, Is it possible to run JSP in linux command prompt?. If there is yes mean, plz tell how we can do that...


pls suggest me....

tahnks in addvance........

Last edited by ramesh14; 07-04-2011 at 04:23 AM.
 
Old 07-04-2011, 08:53 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by ramesh14 View Post
hi,

I am using tomcat6 server os is fedora9 i need to run test.jsp file every 20 minits i assigned the cron job */20 * * * * wget http://<my host>/containfolder/recurring.jsp but, its take long time so i need to run test.jsp file in linux command prompt, Is it possible to run JSP in linux command prompt?. If there is yes mean, plz tell how we can do that...

pls suggest me....
tahnks in addvance........
Spell out your words.

And if you can run it through CRON, you can run it from the command line. Have you TRIED it?
 
Old 07-05-2011, 06:45 AM   #3
ramesh14
Member
 
Registered: Apr 2008
Location: Hyderabad
Distribution: RHEL5,Fedora 8/9
Posts: 119

Original Poster
Blog Entries: 1

Rep: Reputation: 15
hi tbone

i read the following link i'll explain my problem

i am using fedora9 server i installed tomcat6 aplication my programers writed some code but i dont have knowledge on java i cont explain the code
but i can explain the theme of code when i run the command wget http://my_ip:8080/test.jsp automatically some data will fetching in to mysql database it will create data file in target directory but it is too late and when i run this command that job is handling the tomcat server i need to run every 20 mints the number of connection was established on tomcat server and server busy that's y i try to execute in my shell pls advice me if have any possibilities in Linux
 
Old 07-05-2011, 09:02 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by ramesh14 View Post
hi tbone
i read the following link i'll explain my problem

i am using fedora9 server i installed tomcat6 aplication my programers writed some code but i dont have knowledge on java i cont explain the code
but i can explain the theme of code when i run the command wget http://my_ip:8080/test.jsp automatically some data will fetching in to mysql database it will create data file in target directory but it is too late and when i run this command that job is handling the tomcat server i need to run every 20 mints the number of connection was established on tomcat server and server busy that's y i try to execute in my shell pls advice me if have any possibilities in Linux
Spell out your words.

Again....if you can run it from CRON, you can run it from the command line. You just said you could, which was your original question. So either you want it to run automatically every 20 minutes (for which you run it through CRON), or you run it manually by typing it in. You could even put the wget statement into a shell script file, and run IT every 20 minutes, or have the shell sleep that long, before looping through.
 
  


Reply



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
how to run linux command from a different user from a jsp page which is run by tomcat etika Linux - Newbie 2 04-27-2011 11:53 AM
how copy a file from a cd into the computer using the comand line? mariav Linux - Software 3 04-13-2007 10:07 PM
linux comand line in windows? colinstu General 3 08-12-2005 10:51 PM
how can i run jsp programme in redhat linux 9 dineshgarg Red Hat 0 07-21-2005 02:11 AM
Good REDHAT LINUX books (comand line) snapper64 Linux - General 4 10-23-2004 04:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:35 PM.

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
Open Source Consulting | Domain Registration