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> };
In reply to Re^3: execute a file, then send terminate command?
by BrowserUk
in thread execute a file, then send terminate command?
by perlpreben
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |