By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,333 Members | 1,850 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,333 IT Pros & Developers. It's quick & easy.

child Window not closing after calling java app using system call in perl

P: 1
I have a java app that generates openoffice docs. When I run the java app in a shell script, as:

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.

here is how I call it in perl:

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);

I tried to use exec and backtick (``) commands to fire the java app from the perl script but still same result.

Please let me know of your thoughts

Tx

Houh
Jan 25 '08 #1
Share this Question
Share on Google+
1 Reply


P: 5
Hi,

In perl we can terminate the running process using killprocess by providing the PID number..

Have to tried using Win32::Process module for terminate the process.
Jan 26 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.