On Mon, Oct 22, 2001 at 12:33:37PM +0530, Abhra Debroy wrote: > My problem is code after "system('C:/from21/AbhraDownload/pce.exe'); " does > not get executed unless PCE(Application) is closed. It even do not print > 'After Invoking application'; > > How I can Overcome the situation.
Use fork and exec: my $pid = fork(); die("Unable to fork: \l$!.\n") unless defined($pid); if ($pid) { # Get the window title. } else { exec($program); } It's not guaranteed the child will be ready when then parent is reaches the code to query the window title. You will likely have to poll for the data you want, or sync up the parent and child processes. Michael -- Administrator www.shoebox.net Programmer, System Administrator www.gallanttech.com -- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]