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 Programmer Certification (SCJP/OCPJP) and the fly likes URGENT !! How can a shell script get the System.exit() exit value? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "URGENT !! How can a shell script get the System.exit() exit value?" Watch "URGENT !! How can a shell script get the System.exit() exit value?" New topic
Author

URGENT !! How can a shell script get the System.exit() exit value?

Ernest Lee
Ranch Hand

Joined: Aug 20, 2001
Posts: 145
Can a shell script get the System.exit()'s exit value? How?? pls.
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
Some unix shells can use "$?"
DOS I do not know, perhaps "$$$$$$$$$$$$$$$$$..."


Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
shweta mathur
Ranch Hand

Joined: Sep 23, 2002
Posts: 109
for Dos its
echo %errorlevel%
Hope it helps !!


--Shweta<br />SCJP 1.4 <br />SCWCD
Ernest Lee
Ranch Hand

Joined: Aug 20, 2001
Posts: 145
thanks alot!
 
GeeCON Prague 2014
 
subject: URGENT !! How can a shell script get the System.exit() exit value?