This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
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


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: 24187
    
  34

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


[Jess in Action][AskingGoodQuestions]
 
GeeCON Prague 2014
 
subject: How to return a value from java to Shell Script?