aspose file tools*
The moose likes Java in General and the fly likes How to return a value from java to Shell Script? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "How to return a value from java to Shell Script?" Watch "How to return a value from java to Shell Script?" New topic
Author

How to return a value from java to Shell Script?

balaji anatha padmanaban
Greenhorn

Joined: Jun 18, 2008
Posts: 19
Hi,

I need help for the below requirement.This is the requirement.Please help me.The Java file will be called from shell script.But here we are caling the main method.So I need to clear to return and also how to check the HEAP DUMP or Java Core resulted

"Add some logic at the bottom of the script to check for a successful return code from java, to also ensure that no heap dump or java core resulted, and to grep the log file(s) for messages that reveal an error which warrants an alert".
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24168
    
  30

The process return value is the argument passed to System.exit(int) .


[Jess in Action][AskingGoodQuestions]
 
Consider Paul's rocket mass heater.
 
subject: How to return a value from java to Shell Script?
 
Similar Threads
What are these JVM Errors??
Return value from main
Analyse large heap dump file
To call a javascript function using shell script
How to return a value from java to script