To check if the JAVA Program is successfully executed in sh shell scripting

Tags
check if java is executed succesffuly, shell scripts

 
Thread Tools Search this Thread
# 1  
Old 09-06-2017
To check if the JAVA Program is successfully executed in sh shell scripting

Hi ,

I have written a shell script to call a java program say load_id.sh .This sh script indeed is executed implicitly in other sh script which calls 2 more sh scripts one by one. I need to check if the load_id.sh (which calls java program) is executed successfully only then continue with other shell script.

Please suggest how to check if the load_id.sh has run successfully.

Thanks in advance!!

Last edited by rbatte1; 09-06-2017 at 08:00 AM..
# 2  
Old 09-06-2017
Welcome preema,

I have a few to questions pose in response first:-
  • Is this homework/assignment? There are specific forums for these.
  • What have you tried so far?
  • What output/errors do you get?
Most importantly, What have you tried so far?

You are probably looking for the return code or a message from the java. What does it do when it exits? Can you show us a sample of the java? (within CODE tags)

We're all here to learn and getting the relevant information will help us all.



Thanks, in advance,
Robin

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Executing the shell script through java program punpun777777 Shell Programming and Scripting 2 07-22-2014 12:42 PM
Need to echo command successful if command is executed successfully Vishal_dba Shell Programming and Scripting 1 02-28-2014 11:48 AM
Problem while Invoke Shell Script function from Java Program nanthagopal Shell Programming and Scripting 2 11-22-2012 05:28 AM
Shell script to input as if from command line to the java program surya5kn Shell Programming and Scripting 4 07-26-2012 10:22 AM
how to execute a unix shell script from a java program aish11 Shell Programming and Scripting 4 03-07-2012 09:38 AM
Why only partiial shell script got executed when called in Java zmwang UNIX for Advanced & Expert Users 4 10-06-2011 04:55 PM
script has been executed successfully or not?? bobby1015 Shell Programming and Scripting 2 07-21-2011 02:58 PM
System Command dies even when command gets executed successfully Priyanka Gupta Shell Programming and Scripting 2 05-15-2011 10:44 AM
Call java program from shell and pass values Neha Goyal Shell Programming and Scripting 1 05-17-2010 10:24 AM
Script working successfully only when executed twice meva UNIX for Advanced & Expert Users 3 05-05-2010 04:59 AM
How to capture return value from java in shell scripting rajeshorpu Shell Programming and Scripting 1 08-30-2009 03:30 PM
Shell scripting Program balaji23_d Shell Programming and Scripting 1 10-06-2008 01:31 PM
Shell scripting Program balaji23_d Shell Programming and Scripting 1 10-06-2008 09:45 AM
how could I check whether ftp a file is successfully done or not rinku Shell Programming and Scripting 1 11-20-2007 02:34 AM