Calling a servlet from schell script


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Calling a servlet from schell script
# 1  
Old 11-17-2010
Calling a servlet from schell script

Hi All,

I have deployed a servlet on my server and the u r l is

http://

localhost:9080/ ExampleApp / TestJackServlet

This works fine when i launch this URL from the browser


I am looking for shell script to hit the servlet or hit the URL without launching the browser session.

I am looking at wget command

Could you please help me with the shell script, how could i achieve this if possible


Many Thanks in advance,
Jack
# 2  
Old 11-17-2010
First of all try:
Code:
man wget

Then perhaps something like:
Code:
wget --spider http://localhost:9080/ExampleApp/TestJackServlet

You can use cURL too.
# 3  
Old 11-17-2010
Call servlet from shell script

Thanks verdepollo,

will this open the browser session?

i also want to return value 0 if my process through servlet is successful and 1 if it is unsuccessful

please let me know how this can be achieved

Many Thanks,
Jack.
# 4  
Old 11-17-2010
Quote:
will this open the browser session?
No, but you should try it by yourself.

Quote:
i also want to return value 0 if my process through servlet is successful and 1 if it is unsuccessful
When you say "my process" what exactly do you mean?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Curl --cert to call a servlet

Hi, For one of our requirements, we are using curl command from a Linux box to call the servlet using PEM certificates type. Once servlet is trigger, the data will be loaded through servlet. If the servlet thread is completed successfully, then the control should return to Unix and based on... (0 Replies)
Discussion started by: subhransun
0 Replies

2. Solaris

Looking for xsql servlet for Solaris 7

Am trying to find a copy of xsql servlet for solaris 7 but it seams its no longer available to download so am wondering if anyone has a copy backed up there can share with me? thanks :) (2 Replies)
Discussion started by: Wpgn
2 Replies

3. Shell Programming and Scripting

How to prvenent giving password run time in schell scripting?

Hi I'm copying around 20 vi files from solaris server-A to server-B using 'scp' command.I have included all 20 scp commands in one shell script. Proplem is, while executing each scp command its prompting for my NIS password of server A. Please see below How to get rid of password prompt.??? (1 Reply)
Discussion started by: buzzme
1 Replies

4. Web Development

Servlet CLASSPATH for Apache

Hi All, I'm trying to play around with Java Servlets. I have a apache web server running on Solaris. And I'm trying to understand which file I add the JAVA CLASSPATH too so that when apache starts up it will have access to mysql interface libraries etc. Could some one please tell me? ... (0 Replies)
Discussion started by: fishman2001
0 Replies

5. Shell Programming and Scripting

Capture Schell script error

I work on AIX 5.x. I have a script which does lot of processing & calls multiple child scripts. How do I capture the error of the parent script if it fails? Thanks Sumeet (3 Replies)
Discussion started by: sumeet
3 Replies

6. Shell Programming and Scripting

Need help(sh script)--schell scripting

Hello everybody. Result of my script is coming out to be as mentioned in the below format. Output:: Modified records are as follows = = @abc.core.admin.jonas_user@ = value221 @abccsd.core.admin.pltf_name@ = valuee991 = = ####################################### I need to get... (3 Replies)
Discussion started by: shahidbakshi
3 Replies

7. Shell Programming and Scripting

need assistance ----SH schell script

Hello All, I need to develop a script(SH]) to generate a comparison file between two files old and new file.The script takes in parameter the old file path and the new file path. And the script generates a file containing the comparison between the two files with this details: - Keys... (2 Replies)
Discussion started by: shahidbakshi
2 Replies

8. Shell Programming and Scripting

creating reports using shell schell script

please advise..very urgent. purpose of my script is that it should generate a report by running a sql script which is stored in a directory and pull the information from DB.script shld be in such a way that I just need to pass a parameter and it shld generate the report and store it in a... (1 Reply)
Discussion started by: complicated
1 Replies

9. UNIX for Dummies Questions & Answers

Reload Servlet in Tomcat

does anyone know how to reload servlet in tomcat? when do I actually reload it? when I modify any file in this server? (1 Reply)
Discussion started by: hamboy
1 Replies

10. Shell Programming and Scripting

writing schell scripts

I am very new to Unix. I need to write a script that will grep some files, etc. When I write the script, do I need to know what shell I am using? If so, how do I do that? (1 Reply)
Discussion started by: ssmiths001
1 Replies
Login or Register to Ask a Question