This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android 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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to return a value from java to Shell Script?
 
Similar Threads
Analyse large heap dump file
How to return a value from java to script
To call a javascript function using shell script
Return value from main
What are these JVM Errors??