aspose file tools*
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!
 
 
subject: URGENT !! How can a shell script get the System.exit() exit value?