maccatalan
Registered
Hello everybody
I made a little Perl script and well ... I have a problem.
The purpose of this script if to preprocess files in a folder with some `sort` and `head` or `tail` commands and then launch a program with system() with some file-specific arguments.
The script generates a log, telling what he made as preprocess.
However the log file is only filled at the end of the script
The script creates his log file, that's ok, but he writes into it only at the end of the script. I tried to find some flush command but nothing ...
Can anyone help me ?
thanks a lot,
Pierre
I made a little Perl script and well ... I have a problem.
The purpose of this script if to preprocess files in a folder with some `sort` and `head` or `tail` commands and then launch a program with system() with some file-specific arguments.
The script generates a log, telling what he made as preprocess.
However the log file is only filled at the end of the script
The script creates his log file, that's ok, but he writes into it only at the end of the script. I tried to find some flush command but nothing ...
Can anyone help me ?
thanks a lot,
Pierre