LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   how to run test.jsp file in comand line interface on Linux (https://www.linuxquestions.org/questions/linux-software-2/how-to-run-test-jsp-file-in-comand-line-interface-on-linux-889794/)

ramesh14 07-04-2011 04:10 AM

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........

TB0ne 07-04-2011 08:53 PM

Quote:

Originally Posted by ramesh14 (Post 4404165)
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?

ramesh14 07-05-2011 06:45 AM

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

TB0ne 07-05-2011 09:02 AM

Quote:

Originally Posted by ramesh14 (Post 4405537)
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.


All times are GMT -5. The time now is 06:11 AM.