RE: a require problem

2008-08-29 Thread Berg, Eric
n Harkins > Sent: Friday, August 29, 2008 4:16 PM > To: Berg, Eric > Cc: [EMAIL PROTECTED]; modperl perl apache org > Subject: Re: a require problem > > On Fri, Aug 29, 2008 at 3:43 PM, Berg, Eric > <[EMAIL PROTECTED]> wrote: > > For me, it's the same on both. &g

RE: a require problem

2008-08-29 Thread niels
What does 'file $cmd' (the gnu file program) say? is -e true under mod_perl? I'm out of ideas, but if you are certain its not due to different Apache configuration, then maybe sifting though strace output would be worth trying .. and i'm new to mod_perl anyway. Good luck. My errors are often obviou

Re: a require problem

2008-08-29 Thread Perrin Harkins
On Fri, Aug 29, 2008 at 3:43 PM, Berg, Eric <[EMAIL PROTECTED]> wrote: > For me, it's the same on both. Nevertheless, there have been problems in the past with GID. Are you running the latest mod_perl, and perl 5.8.8 or later? See this for background: http://marc.info/?l=apache-modperl&m=1179227

RE: a require problem

2008-08-29 Thread Berg, Eric
perl perl apache org > Subject: RE: a require problem > > Could it be that during forking a different effective user id is > set, which is what -x checks? are $<, $>, $( and $) all the same > under cgi and mod_perl? > > (it sounds like /usr/bin/rcsdiff is not a symbolic l

RE: a require problem

2008-08-29 Thread niels
Could it be that during forking a different effective user id is set, which is what -x checks? are $<, $>, $( and $) all the same under cgi and mod_perl? (it sounds like /usr/bin/rcsdiff is not a symbolic link, which could be treated differently maybe, followsymlinks, etc) Niels L > The mod_perl

Re: a require problem

2008-08-29 Thread Perrin Harkins
On Fri, Aug 29, 2008 at 2:04 PM, Berg, Eric <[EMAIL PROTECTED]> wrote: > The mod_perl server and the CGI server are the same. Even so, CGI is often configured to execute the script as the owner of the file, rather than as the user running the web server, so make sure you really are the same user.

RE: a require problem

2008-08-29 Thread Berg, Eric
---Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On > Behalf Of Perrin Harkins > Sent: Friday, August 29, 2008 1:35 PM > To: Berg, Eric > Cc: Sean Davis; Jeff Pang; modperl perl apache org > Subject: Re: a require problem > > On Fri, Aug 29, 2008

Re: a require problem

2008-08-29 Thread Perrin Harkins
On Fri, Aug 29, 2008 at 1:23 PM, Berg, Eric <[EMAIL PROTECTED]> wrote: > The really weird thing is that when run in a CGI context, the -x test > works as expected, but when called when running as a mod_perl2 registry > script, it returns false, even though the file (that does exist) is > executable

RE: a require problem

2008-08-29 Thread Berg, Eric
e- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On > Behalf Of Perrin Harkins > Sent: Friday, August 29, 2008 12:46 PM > To: Berg, Eric > Cc: Sean Davis; Jeff Pang; modperl perl apache org > Subject: Re: a require problem > > On Fri, Aug 29, 2008 at 10:53 AM, Berg

Re: a require problem

2008-08-29 Thread Perrin Harkins
On Fri, Aug 29, 2008 at 11:19 AM, Clinton Gormley <[EMAIL PROTECTED]> wrote: > Is this not a current-working-directory issue? > > This isn't terribly well documented on the mod_perl site, but from > http://perl.apache.org/docs/2.0/api/ModPerl/Registry.html Better documented here: http://perl.apach

Re: a require problem

2008-08-29 Thread David Nicol
On Fri, Aug 29, 2008 at 11:46 AM, Perrin Harkins <[EMAIL PROTECTED]> wrote: > On Fri, Aug 29, 2008 at 10:53 AM, Berg, Eric <[EMAIL PROTECTED]> wrote: >> eval( $file ) ... did not successfully execute the code in $file. that isn't supposed to. eval( `cat $file`) should though. Or use Tie::S

Re: a require problem

2008-08-29 Thread Perrin Harkins
On Fri, Aug 29, 2008 at 10:53 AM, Berg, Eric <[EMAIL PROTECTED]> wrote: > Just yesterday I ran into a problem in which using do( $file ) or eval( > $file ) both had problems in that they did not successfully execute the > code in $file. What were the error messages from do and eval? > Folks, is t

RE: a require problem

2008-08-29 Thread Berg, Eric
nal Message- > From: Clinton Gormley [mailto:[EMAIL PROTECTED] > Sent: Friday, August 29, 2008 11:19 AM > To: Berg, Eric > Cc: Sean Davis; Jeff Pang; modperl perl apache org > Subject: RE: a require problem > > Is this not a current-working-directory issue? > > T

RE: a require problem

2008-08-29 Thread Clinton Gormley
to accomplish this? > > Eric > > > -Original Message- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On > > Behalf Of Sean Davis > > Sent: Friday, August 29, 2008 10:05 AM > > To: Jeff Pang > > Cc: modperl perl apache org > > Subject

RE: a require problem

2008-08-29 Thread Berg, Eric
gt; From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On > Behalf Of Sean Davis > Sent: Friday, August 29, 2008 10:05 AM > To: Jeff Pang > Cc: modperl perl apache org > Subject: Re: a require problem > > On Fri, Aug 29, 2008 at 9:54 AM, Jeff Pang <[EMAIL PROTECTED]> wrote

Re: a require problem

2008-08-29 Thread Sean Davis
On Fri, Aug 29, 2008 at 9:54 AM, Jeff Pang <[EMAIL PROTECTED]> wrote: > I have began a project, but meet some problems,:) > > say there are three dirs: > > |- cgi-bin > |- cgi-bin - lib > |- cgi-bin - template > > > I have a script in cgi-bin, which requires the template file from template > dir. >

a require problem

2008-08-29 Thread Jeff Pang
I have began a project, but meet some problems,:) say there are three dirs: |- cgi-bin |- cgi-bin - lib |- cgi-bin - template I have a script in cgi-bin, which requires the template file from template dir. This script also uses a library file (.pm) from lib dir. Finally the library need to requ