This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets 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: 24183
    
  34

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


[Jess in Action][AskingGoodQuestions]
 
Don't get me started about those stupid light bulbs.
 
subject: How to return a value from java to Shell Script?
 
Similar Threads
Return value from main
To call a javascript function using shell script
Analyse large heap dump file
What are these JVM Errors??
How to return a value from java to script