Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to return a value from java to Shell Script?

 
balaji anatha padmanaban
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 24212
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The process return value is the argument passed to System.exit(int) .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic