getting output immediately of an application started with open-commandI think what you
want is :
$| = 1;
that enables 'flushing' of the output, ie, doesnt buffer it, but prints right away.
hth
Jos Boumans
----- Original Message -----
From: Heiko Kundlacz
To: [EMAIL PROTECTED]
Sent: Monday, July 16, 2001 11:22 AM
Subject: getting output immediately of an application started with open-command
Hi all,
if I start a application with open, I get the output of the application, when I exit
the application:
$proc_ID = open (GSM, "$config{'jdk.dir'}/bin/java -classpath
$config{'env.CLASSPATH'} -Dinstall.dir=d:/test -DCONFIGDIR=d:/test
-DSKYVASERVER=bls-db -Dadmhost=bls-db -DSkyvaServer=bls-db -DSkyvaHost=bls-db
-Dskyva.configDir=d:/test/config com.skyva.cust.bls.gui.MainFrame |");
while (defined ($_ = <GSM>)) {
print $_;
}
In this example a java application will be started. If I start in a DOS-Box, the
java application prints its output immediately to the console.
If I start it like above, the output will be printed to the console after the java
programs end. How can I print the output at runtime to the console?
Thanks for your help in advance
Heiko
------------------------------------------------------------------------------
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]