Re: stdout from scripts goes to apache logs

2024-05-13 Thread Steven Haigh via modperl
On 14/5/24 14:18, Ed Sabol wrote: On May 13, 2024, at 11:00 PM, Steven Haigh via modperl wrote: If I was to guess, it seems like an interaction with open3 and modperl. https://perldoc.perl.org/IPC::Open3 Yes, this is a known problem with IPC::Open3 that is commonly seen with mod_perl

Re: stdout from scripts goes to apache logs

2024-05-13 Thread Steven Haigh via modperl
you put your script under the mod-perl environment? What is your httpd.conf file? Thx. On Mon, May 13, 2024 at 10:00 PM Steven Haigh via modperl mailto:modperl@perl.apache.org>> wrote: I wonder if perhaps I haven't been clear in the problem. In the provided c

Re: stdout from scripts goes to apache logs

2024-05-13 Thread Steven Haigh via modperl
om, you can see how to output the content. Cheers, Joseph On Mon, May 13, 2024 at 9:35 PM Steven Haigh via modperl mailto:modperl@perl.apache.org>> wrote: That being said, is there a way to output to the web page in this scenario? On 14/5/24 12:15, Joseph He wrote:

Re: stdout from scripts goes to apache logs

2024-05-13 Thread Steven Haigh via modperl
:53 AM Steven Haigh via modperl mailto:modperl@perl.apache.org>> wrote: Hi all, I'm playing around with mod_perl on apache on docker - and now I've finally got all the module issues sorted, I'm trying to figure out why when using mod_perl, the output of s

Re: stdout from scripts goes to apache logs

2024-05-13 Thread Steven Haigh via modperl
Handler ModPerl::Registry   or PerlHandler SomeLib::SomePAckage type thing... (this would be as well as the Set/AddHandler line) Kind regards, On Mon, May 13, 2024 at 7:54 AM Steven Haigh via modperl mailto:modperl@perl.apache.org>> wrote: Hi all, I'm playing around with mo

stdout from scripts goes to apache logs

2024-05-12 Thread Steven Haigh via modperl
Hi all, I'm playing around with mod_perl on apache on docker - and now I've finally got all the module issues sorted, I'm trying to figure out why when using mod_perl, the output of scripts ends up in the apache logs. The following configuration works, and the output of shelled scripts works

Re: Confusion about SQL results - row counts and contents differ

2023-01-26 Thread Steven Haigh via modperl
On Fri, Jan 27 2023 at 10:41:02 +0800, demerphq wrote: On Fri, 27 Jan 2023, 10:35 Steven Haigh via modperl, mailto:modperl@perl.apache.org>> wrote: On Thu, Jan 26 2023 at 21:07:17 -0500, Perrin Harkins mailto:phark...@gmail.com>> wrote: Maybe you haven't committed some man

Re: Confusion about SQL results - row counts and contents differ

2023-01-26 Thread Steven Haigh via modperl
On Thu, Jan 26 2023 at 21:07:17 -0500, Perrin Harkins wrote: Maybe you haven't committed some manual change on the server, so it isn't visible to other connections. I thought about this - but surely, restarting *everything* (db + apache + entire VM) would cause this to fall out. Also, w

Re: Confusion about SQL results - row counts and contents differ

2023-01-26 Thread Steven Haigh via modperl
On Fri, Jan 27 2023 at 09:50:42 +0800, demerphq wrote: On Fri, 27 Jan 2023, 09:43 Steven Haigh via modperl, mailto:modperl@perl.apache.org>> wrote: Hi all, I'm a little confused about my little mod_perl web site at the moment. I'm doing an SQL query, then punting th

Confusion about SQL results - row counts and contents differ

2023-01-26 Thread Steven Haigh via modperl
Hi all, I'm a little confused about my little mod_perl web site at the moment. I'm doing an SQL query, then punting the results into a dataset to display via the web page. When I do the query directly on the SQL server, I see: SELECT COUNT(*) FROM printers; 30 When I do the same in code via