RE: Problem with perl system() function

2004-04-29 Thread Dr. Helmut Zeilinger
Hi, why don't you use readpipe, which lets you avoid the intermediate data file: ... my $data = readpipe ($cmd); ... Helmut I tried this (inside the handler): ... my $cmd = '/opt/reports/bin/getdata'; system($cmd, @params); if ( open(DATA, '/opt/reports/var/data.txt') ) { local

[MP2] eval and exit(0)

2004-04-29 Thread Arnaud Blancher
hi all, I have a stange problem whith mod_perl 2. The script behing have a diferent result in perl/cgi than in mod_perl so i don't know if i make a mistake whith perl/cgi or if it's a bug. # in standad cgi, the output is In first # in mod_perl, the output is In first In second I dont want to

Re: new version Re: GTop-0.12 compile and installation problems

2004-04-29 Thread Pete Geenhuizen
Don't know what happened to this email originally, any way here's what I sent. Stas, What I just found is that Solaris has init64_t. I don't know any more about it, I noticed that during a configure of libgtop that u_init64_t wasn't found, but init64_t was, don't know if that helps or is

mp2 Apache2.0.49 on HPUX11i : mod_perl does not load in Apache

2004-04-29 Thread olivier blanc
1. Problem Description: While trying to load compiled DSO modperl in Apache, I got the following error :

Re: [MP2] eval and exit(0)

2004-04-29 Thread ydnar
The eval() is unecessary. The named sub can be used: $func(); mod_perl remaps exit() to ModPerl::Util::exit(). Are you sure the right modules are being loaded? Arnaud Blancher wrote: hi all, I have a stange problem whith mod_perl 2. The script behing have a diferent result in perl/cgi than

Re: [MP2] eval and exit(0)

2004-04-29 Thread Arnaud Blancher
ydnar a écrit : The eval() is unecessary. The named sub can be used: $func(); great, it's ok! mod_perl remaps exit() to ModPerl::Util::exit(). Are you sure the right modules are being loaded? i don't know. how can i know that ? tank you very much Arnaud. Arnaud Blancher wrote: hi all, I

Re: [MP2] eval and exit(0)

2004-04-29 Thread Stas Bekman
ydnar wrote: The eval() is unecessary. The named sub can be used: $func(); mod_perl remaps exit() to ModPerl::Util::exit(). Are you sure the right modules are being loaded? You don't need to load anything. Indeed under mp2: *CORE::GLOBAL::exit = \ModPerl::Util::exit; And you don't need to

Re: Insecure $ENV{PATH} while running with -T at Mail/Mailer/sendmail.pm

2004-04-29 Thread Stas Bekman
[EMAIL PROTECTED] wrote: Hi, on the top of my mod_perl 1 script I have: package Taskit; BEGIN { delete @ENV{qw(PATH IFS CDPATH ENV BASH_ENV)}; } use Apache; use Apache::Constants qw(OK); use Apache::Request; use Net::LDAP; use

Re: mp2 Apache2.0.49 on HPUX11i : mod_perl does not load in Apache

2004-04-29 Thread Stas Bekman
olivier blanc wrote: 1. Problem Description: While trying to load compiled DSO modperl in Apache, I got the following error :

Re: Problem with perl system() function

2004-04-29 Thread Brian Reichert
On Wed, Apr 28, 2004 at 03:55:23PM -0400, Alejandro Galue wrote: I tried this (inside the handler): ... my $cmd = '/opt/reports/bin/getdata'; system($cmd, @params); if ( open(DATA, '/opt/reports/var/data.txt') ) { local $_; while (DATA) { $r-print($_) } close DATA; } else

help with perlfixuphandler

2004-04-29 Thread Cristóvão B. B. Dalla Costa
Hello We're developing an application which returns large files depending on the URL provided. For cleanliness and easier updates we do not want to set an Apache Alias for each file, instead we're looking them up in a database. Originally, we had a PerlHandler identify the file and print it

Re: help with perlfixuphandler

2004-04-29 Thread Geoffrey Young
Cristóvão B. B. Dalla Costa wrote: Hello We're developing an application which returns large files depending on the URL provided. For cleanliness and easier updates we do not want to set an Apache Alias for each file, instead we're looking them up in a database. Originally, we had a

mod_perl File Extension Configuration instead of a Path Configuration

2004-04-29 Thread JupiterHost.Net
Hello group! Super mod_perl newbie here :) I was wondering if its possible to setup mod_perl in httpd.conf with a File Extension Configuration instead of a Path Configuration. IE - everything with the .mpl extension is run under mod_perl instead of everything in /perl/ being run under

cvs commit: modperl-2.0/t/filter out_str_subreq_default.t

2004-04-29 Thread randyk
randyk 2004/04/29 22:49:19 Modified:t/filter out_str_subreq_default.t Log: Reviewed by: stas strip \r line endings for Win32. Revision ChangesPath 1.2 +3 -0 modperl-2.0/t/filter/out_str_subreq_default.t Index: out_str_subreq_default.t