I have a perl script that fires a java application using the system command.
my $sys_call = join (' ', $java_home, $metrics_gui);
$sys_call = join ('',$sys_call, ' "', $mgconfig, '"');
# commands to run the MG GUI with $mgconfig as an input
system ($sys_call);
The java application generates openoffice documents which is run on the same box. However, I cannot close the openoffice document alone. Unless I kill the java app, the open office document does not close. I tried to use exec and tilda (``) command to fire the java app from the perl script but still same result.
Please let me know what you think
Houh
if i understood correctly, the problem is in your java app, since that is the process that has opened the document window.
export JAVA_HOME=/opt/corp/projects/metrics/Java/jdk1.5.0_07/bin/java
export CONST_LOC=/home/methct/metrics/MGConfig/staging_8103.xml
$JAVA_HOME view.main.MetricsMainFrame $CONST_LOC
i can close the openoffice doc that are generated by the java app, with no issues.
The problem is when I fire the java app from the perl script using the system call, then I won't be able to close the open office docs unless I close the java app.
Please let me know what you think
Houh