Alright, what's a "tail -f"?

-----Original Message-----
From: Bob Showalter [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 11:09 AM
To: 'Max Clark'; '[EMAIL PROTECTED]'
Subject: RE: "tail -f" with cgi


> -----Original Message-----
> From: Max Clark [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 11, 2002 7:44 PM
> To: '[EMAIL PROTECTED]'
> Subject: "tail -f" with cgi
> 
> 
> Hi,
> 
> I am trying to write a cgi program to "tail -f" a log file. I 
> have a perl
> script that will open and print the log file, however it 
> closes as soon as
> it reads whatever is in the file at that particular time. How 
> do I mimic
> "tail -f" functionality?

CPAN has a File::Tail module.

But a CGI script isn't designed to be long-running like this. The
web server will eventually time out the request and kill your script.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to