Computing.Net > Forums > Unix > How to call a java program twice fr

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

How to call a java program twice fr

Reply to Message Icon

Name: grayap
Date: March 30, 2003 at 00:10:01 Pacific
OS: AIX UNIX
CPU/Ram: ???
Comment:

Hi,

I am trying to call the same program twice from the one shell script. The diffence between the first and second call is one command line arg that effects the logic path. What is happening is the first call is working fine but when it get to the line in the shell script to make the second call to the program it just hangs. I have a System.exit(1) as the last line of the program.

Why is it hanging in the shell script? I would have thought the System.exit(1) would ensure the JVM was exited correctly so control would pass back to the script. Does it need to be System.exit(0)?

Please mail responses to andrewg@oakton.com.au

Thanks,

Andrew




Sponsored Link
Ads by Google

Response Number 1
Name: WilliamRobertson
Date: March 30, 2003 at 15:05:33 Pacific
Reply:

Does this problem only occur within a shell script, or could it be a bug in the Java program?


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: How to call a java program twice fr

how to Call a shell script www.computing.net/answers/unix/how-to-call-a-shell-script/3640.html

How to add a java tag to the data www.computing.net/answers/unix/how-to-add-a-java-tag-to-the-data/8362.html

how to create a beep sound www.computing.net/answers/unix/how-to-create-a-beep-sound/6312.html