Re: Breaks in mod_perl, works in Perl

2002-03-06 Thread Jeremy Howard
Mark Hazen wrote: > >Hmm, then create a ramdisk and read from the file virtually stored in > >the RAM. > > Stas, > > This is an elegant solution that I had not thought of. My problem is that I > can't get ramdisks to work on my Red Hat 6.2 with 2.4.9 machine. But that's > really my problem, and

RE: Breaks in mod_perl, works in Perl

2002-03-06 Thread Mark Hazen
>This is a design flaw of DBI then. You might get more results if you >post on the DBI users list. We got part of the way there by >redefining the trace_msg function, the only part that remains is >gathering the output of the lower-level DBD calls, that might involve >modifying some XS code, (o

RE: Breaks in mod_perl, works in Perl

2002-03-06 Thread Mark Hazen
>Hmm, then create a ramdisk and read from the file virtually stored in >the RAM. Stas, This is an elegant solution that I had not thought of. My problem is that I can't get ramdisks to work on my Red Hat 6.2 with 2.4.9 machine. But that's really my problem, and you've all been a big help. Tha

Re: Breaks in mod_perl, works in Perl

2002-03-06 Thread Mark Fowler
On Thu, 7 Mar 2002, Stas Bekman wrote: > Mark Hazen wrote: > > That's your opinion. In my opinion, a bunch of disk IO and file seeks are a > > waste of resources. The bigger issue here is that it is better to store in > > memory, and it saddens me that it doesn't seem possible. > > Hmm, then c

Re: Breaks in mod_perl, works in Perl

2002-03-06 Thread Stas Bekman
Mark Hazen wrote: > Mark Hazen wrote: > >>>I wish this were true, but no one will ever get IO::Scalar to catch DBI's >>>STDERR output. >>> > >>If so, it's only because STDERR under mod_perl is already tied. DBI is >>not an external process. >> > >>>Throwing all this stuff into a file is alread

Re: Breaks in mod_perl, works in Perl

2002-03-06 Thread Paul Lindner
On Wed, Mar 06, 2002 at 11:27:28AM -0700, Mark Hazen wrote: > Mark Hazen wrote: > >> I wish this were true, but no one will ever get IO::Scalar to catch DBI's > >> STDERR output. > > >If so, it's only because STDERR under mod_perl is already tied. DBI is > >not an external process. > > >> Throw

RE: Breaks in mod_perl, works in Perl

2002-03-06 Thread Mark Hazen
Mark Hazen wrote: >> I wish this were true, but no one will ever get IO::Scalar to catch DBI's >> STDERR output. >If so, it's only because STDERR under mod_perl is already tied. DBI is >not an external process. >> Throwing all this stuff into a file is already something DBI >> can do, but as I

RE: Breaks in mod_perl, works in Perl

2002-03-06 Thread Mark Hazen
On Wed, Mar 06, 2002 at 11:02:51AM -0700, Mark Hazen wrote: >> IO::Scalar can redirect STDOUT for the mod_perl script itself, but not any >> external processes like DBI. I am still left without a solution. It amazes >> me. >But using DBI isn't an 'external process', is it? It's a part of your

Re: Breaks in mod_perl, works in Perl

2002-03-06 Thread Brian Reichert
On Wed, Mar 06, 2002 at 11:02:51AM -0700, Mark Hazen wrote: > IO::Scalar can redirect STDOUT for the mod_perl script itself, but not any > external processes like DBI. I am still left without a solution. It amazes > me. But using DBI isn't an 'external process', is it? It's a part of your proc

RE: Breaks in mod_perl, works in Perl

2002-03-06 Thread Mark Hazen
Mark Hazen wrote: >> I am hoping there is a someone brilliant on this list that can help me. A >> little while ago, I posted to clp.perl asking how I can capture the trace >> output from DBI into a variable. Since DBI is an external process, I >> couldn't do it just by piping STDERR. Benjamin Go

Re: Breaks in mod_perl, works in Perl

2002-03-05 Thread Stas Bekman
Mark Hazen wrote: > I am hoping there is a someone brilliant on this list that can help me. A > little while ago, I posted to clp.perl asking how I can capture the trace > output from DBI into a variable. Since DBI is an external process, I > couldn't do it just by piping STDERR. Benjamin Goldb

RE: Breaks in mod_perl, works in Perl

2002-03-05 Thread Mark Hazen
riginal Message- From: Paul Lindner [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 1:41 PM To: Mark Hazen Cc: [EMAIL PROTECTED] Subject: Re: Breaks in mod_perl, works in Perl I'm not sure if this will work, but you might override DBI's notion of a trace function. If you loo

RE: Breaks in mod_perl, works in Perl

2002-03-05 Thread Mark Hazen
EMAIL PROTECTED] Subject: RE: Breaks in mod_perl, works in Perl At 1:32 PM -0700 3/5/02, Mark Hazen wrote: >I'm sorry I didn't explain an important component. Since I am dealing with >a few hundred requests per minute (this was got me onto mod_perl to begin >with), then using D

RE: Breaks in mod_perl, works in Perl

2002-03-05 Thread Robert Landrum
At 1:32 PM -0700 3/5/02, Mark Hazen wrote: >I'm sorry I didn't explain an important component. Since I am dealing with >a few hundred requests per minute (this was got me onto mod_perl to begin >with), then using DBI's ability to write to a file would vastly overwhelm my >system. I don't get it

Re: Breaks in mod_perl, works in Perl

2002-03-05 Thread Perrin Harkins
Mark Hazen wrote: > I'm sorry I didn't explain an important component. Since I am dealing with > a few hundred requests per minute (this was got me onto mod_perl to begin > with), then using DBI's ability to write to a file would vastly overwhelm my > system. Won't capturing that much data in RA

Re: Breaks in mod_perl, works in Perl

2002-03-05 Thread Paul Lindner
I'm not sure if this will work, but you might override DBI's notion of a trace function. If you look in DBI.pm you'll see this line: *trace_msg = \&DBD::_::common::trace_msg; It appears that DBI uses the trace_msg function in the bowels of DBD to actually do the printing. Now, you can very l

RE: Breaks in mod_perl, works in Perl

2002-03-05 Thread Mark Hazen
Robert Landrum [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 1:25 PM To: Mark Hazen; [EMAIL PROTECTED] Subject: Re: Breaks in mod_perl, works in Perl At 1:14 PM -0700 3/5/02, Mark Hazen wrote: >I am hoping there is a someone brilliant on this list that can help me. A >little w

Re: Breaks in mod_perl, works in Perl

2002-03-05 Thread Robert Landrum
At 1:14 PM -0700 3/5/02, Mark Hazen wrote: >I am hoping there is a someone brilliant on this list that can help me. A >little while ago, I posted to clp.perl asking how I can capture the trace >output from DBI into a variable. Since DBI is an external process, I >couldn't do it just by piping ST