> -----Original Message----- > From: Shawn [mailto:[EMAIL PROTECTED]] > Sent: Friday, July 12, 2002 12:29 PM > To: Bob Showalter; 'Max Clark'; [EMAIL PROTECTED] > Subject: Re: "tail -f" with cgi > > > > ----- Original Message ----- > From: "Bob Showalter" <[EMAIL PROTECTED]> > To: "'Max Clark'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > Sent: Friday, July 12, 2002 11:08 AM > 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. > > I don't think he was running from the web server,
I'm just going off the phrase "I am trying to write a cgi program to "tail -f" a log file." > but will > the shell time out in the same fashion? No. It continues to tail the file until interrupted (^C or whatever). -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]