R
Ravi Parimi
Hi,
I have a process that is writing to a file and it takes about 5
minutes before the writing is done.
I would like to view the file as it is being updated via a cgi script.
I tried using a pipe as:
open F,"tail -f -n 1000 my_file" or die "$!";
while(<F>) {
print;
}
This program works fine when I run it from the command line. However when
I run it as a CGI script(with all headers in place), I cannot see
any output, and the browser freezes...
The "-n 1000" args for tail are just to make sure I get all the lines from
the file. Any help is greatly appreciated.
Many thanks,
--ravi
I have a process that is writing to a file and it takes about 5
minutes before the writing is done.
I would like to view the file as it is being updated via a cgi script.
I tried using a pipe as:
open F,"tail -f -n 1000 my_file" or die "$!";
while(<F>) {
print;
}
This program works fine when I run it from the command line. However when
I run it as a CGI script(with all headers in place), I cannot see
any output, and the browser freezes...
The "-n 1000" args for tail are just to make sure I get all the lines from
the file. Any help is greatly appreciated.
Many thanks,
--ravi