in reply to Re^2: execute a file, then send terminate command?
in thread execute a file, then send terminate command?
You'll need to ensure that the output buffer gets flushed. Try:
use IO::Handle; open SYS,"| windows_exe_file.exe" or die ...; SYS->autoflush(1); print SYS "EXPORT this and that to thisFile.dat"; print SYS "\e"; close SYS; my @data = do{ open IN, 'thisFile,dat'; local $/; <IN> };
|
|---|