Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Starting a korn program through java and then closing

Status
Not open for further replies.

bos

Technical User
Oct 1, 2002
50
US
I'm creating a gui which at a certain point will start a korn program and then close. I was wondering if there is a way to exit the java gui after initiating the korn program and leave the korn program running. I'm trying to avoid any lag that might occur. Please let me know if it is possible and if so what the proper code might be.

Thanks in advance.
 
You can exit the ui but you must leave the runtime going
or the shell program will die with it.
Most easily you can just do a setVisible(false) in the
ui window.

I believe that you may be able to exit the runtime if
you make a script to execute the other script on a seperate
process. With the "&" thingey to put it on a seperate
process.

#!/bin/bash
/bin/myScript &
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top