.
if(!$r-is_main()) {
return;
}
--
Pierre Phaneuf
... ;-)
--
Pierre Phaneuf
.
--
Pierre Phaneuf
.
:-))
--
Pierre Phaneuf
http://www3.sympatico.ca/pphaneuf/
st reading the titles makes my head hurt! LOL! (I'm french
canadian)
Hmm, Tk from mod_perl, that would be weird. :-)
--
Pierre Phaneuf
Systems Exorcist
DeWitt Clinton wrote:
The other question is whether or not to share the cache instance
itself globally. Technically, this is up to you. Personally I
wouldn't bother, considering the overhead of instantiating the cache
is so low that I would rather keep it local to the handler (as I did
Did anyone try the Chromium Apache-based web server? More specifically
(and topically), does it work with mod_perl?
http://www.chromium.com/
--
"I've run DOOM more in the last few days than I have the last few
months. I just love debugging ;-)" -- Linus Torvalds
Steve Reppucci wrote:
Some folks spend way too much time looking for something to be offended
by, again IMHO.
I'm pretty sure that for any thing you might find, I would be able to
find someone offended by it.
Let's no do anything too obvious (a camel ramming up stuff up Bill Gates
ass would
[EMAIL PROTECTED] wrote:
What's about FreeBSD?
If shared memory is not compiled in kernel of FreeBSD I cant use GTop
module because of absant of shared memory.
So I dont know is there performance affect or not.
You do not have shared memory enabled in your kernel? Any reason? I'd
say that
"Differentiated Software Solutions Pvt. Ltd.," wrote:
I have written two mod_perl programs whose output is same (through
browser).
I want to know what are the difference between them! If there is any
difference then what are the pros and cons in using both of them?
The second program is
Paul Evad wrote:
I know a lot of the good O'Rielly books are showing some age (1999
publishing date). Anyone out there have a copy of "Writing Apache
Modules with Perl and C", is it still relevant enough with the
current apache mod_perl distro's to be worthwhile getting?
Yeah, it still
ithin a PerlTransHandler might be a bad
idea (infinite loops!), but I would have thought that lookup_file would
be ok...
Okay, maybe everyone will jump in my face about this: this is on an
updated Red Hat 7.0 system, using Red Hat's Apache and mod_perl RPM
packages.
--
Pierre Phaneuf
http://www3.sympatico.ca/pphaneuf/
David Jourard wrote:
Found my error after I had my sandwich.
Lesson to keep from this: eat your sandwich! :-)
--
Pierre Phaneuf
http://www3.sympatico.ca/pphaneuf/
overridden and will not hurt the server, but the cleaner way to exit an
Apache::Registry handler is with 'return'. I *think* you can return
something like "return REDIRECT" or "return SERVER_ERROR" if you want,
but I'm not sure (I only use PerlHandler scripts, not Apache::Registry).
--
Pierre Phaneuf
http://www3.sympatico.ca/pphaneuf/
Nikolaus Rath wrote:
As described in the other mail, i have a TransHandler wich modifies
the URI. But this doesn't work correctly.
After modifying the URI, do you return DECLINED or something else?
--
Pierre Phaneuf
http://www3.sympatico.ca/pphaneuf/
can't put
them in Location).
--
Pierre Phaneuf
http://www3.sympatico.ca/pphaneuf/
exist, generate a new
one.
Good one! The only bad thing I see is that the realm is visible in the
dialog box the user see, isn't it? Seeing a random string might be a bit
unsettling for the user, but there is no technical reason for it not to
work.
--
Pierre Phaneuf
Systems Exorcist
hat if you give them an AUTH_REQUIRED, it might clear the
password, but that would also make the authentication dialog box appear
on their machine, which would be rather confusing.
Personally, I use cookies for authentication instead, you can remove
those at will.
--
Pierre Phaneuf
http://www3.sympatico.ca/pphaneuf/
forgot to put a way to revoke the
thing when they designed it. Eh, that's life...
--
Pierre Phaneuf
http://www3.sympatico.ca/pphaneuf/
he PerlHandler (like this: "PerlHandler
+Apache::Foo") did load the module as expected.
Now, why aren't modules loaded with PerlModule not showing up in the
loaded modules list of Apache::Status?
Thanks!
--
Pierre Phaneuf
http://www3.sympatico.ca/pphaneuf/
k, even though there is no such directory, of course.
Now for the most interesting:
If I change the Location / into a Location /tree, EVERYTHING IS
FINE. So this seems to be an exceptional case that happens only at /!?!
So what's going on here?!?
--
Pierre Phaneuf
http://www3.sympatico.ca/pphaneuf/
Ask Bjoern Hansen wrote:
So: What is the task at hand (more than "run something at certain
intervals" (which is what cron(8) is for)).
I am building a web something-something (I don't know what's the current
buzzword for that, you know, the big integrated things) similar to the
ArsDigita
Ask Bjoern Hansen wrote:
I guess two persons "simpler" aren't always the same: I find it easier
laying out a table and querying it than hacking something to fiddle with
my crontab safely.
As far as I know, crontab -e is perfectly safe.
"crontab -l | foo" and "foo | crontab -" are
Matt Sergeant wrote:
as for putting cron into Apache: I don't understand why that's wanted
in the first place. When connecting to the database outside the httpd
it doesn't matter if it goes a little slow. And having separate
programs to do the maintenance would easily be much simpler
Stas Bekman wrote:
I might be barking at the wrong tree, but why cron? Why don't you use
at(1). you don't need to parse crontab for that, and you can spawn
processes with whatever intervals on demand. basically you can call
at(1) itself at the end of at() so you can do the same as crontab.
Tim Bunce wrote:
Apache::Schedule let you register callbacks (per Apache child process)
that will be called after a given amount of time has passed, either once
or repeatedly. Callbacks will be called at the next request after the
required time, or at child exit time.
Would it work
Vivek Khera wrote:
PP Ah yes. The problem with this is between the "crontab -l" and the
PP "crontab -". You have to parse the crontab, find your own entry without
Very limited thinking going on here. The crontab program honors the
EDITOR environment variable. Now... setenv
Perrin Harkins wrote:
The original post didn't say that the goal was to modify the scheduled
jobs dynamically from mod_perl, and that does add a new wrinkle. I still
think a good Perl interface to cron would be more obvious and more
reliable.
Sorry, maybe I didn't make that quite clear.
Vivek Khera wrote:
With appropriate Perl modules for the cron files, this should be
trivial. But then, you probably aren't doing this from mod_perl...
PP Well, yes, why? :-)
You really want to have your web server writing files that execute
arbitrary programs at arbitrary times?
Perrin Harkins wrote:
Well, if I call the "check for things to do" URI every minute, then I'll
be just fine. Many times, I'll just check and find nothing to do
Huh? Why would you call it if there's nothing to do? Are you thinking
you'll write a cron-ish task/timing spec for your Perl
Svante Srmark wrote:
ConfigDBI i Config via DBI and Perl MARKIM
Oracle's new Apache-based application-server stores its config in
the database. It might be good for some ideas.
Any pointer to information?
--
"A Perl script is correct if it gets the job done
Perrin Harkins wrote:
Yes, exactly. My plan is to have a table with the tasks in my database,
and check expired tasks in a cleanup handler. I'll have to lock the
table, so that only one process does that. I'll also query the database
only every so often, not at every request cleanup.
Perrin Harkins wrote:
Sure, but why waste resources?
Because it's easy? :-)
As for the simplicity, having multiple individual custom cron jobs is
simpler than one single generic cron job?
Yes, much simpler, at least for the scheduling and dispatching part.
Instead of designing
Mark Imbriaco wrote:
What is the usual process for one that would like to help with a "i"
module? Is there any code done, or some message/thread that I could be
pointed to, discussing the idea, things like that?
I developed some code to do this a VERY long time ago, but the code was
Mark Imbriaco wrote:
What is the usual process for one that would like to help with a "i"
module? Is there any code done, or some message/thread that I could be
pointed to, discussing the idea, things like that?
I developed some code to do this a VERY long time ago, but the
Pierre Phaneuf wrote:
Does anyone has an idea about this? I think I have proper behavior from
my perl handler by installing it at the root of the server, but this is
no real solution!
What I am doing wrong here???
I'm really stumped with that one. How come Apache::Registry gets the
right
Is there a way to have a Perl function called at some point in time,
like I think AOLserver can do in Tcl (but I don't want to do either
AOLserver or Tcl!)?
I thought about checking the time in a PerlCleanupHandler, but this
would be in each Apache subprocess and I want this to get called only
it out by
hand.
That would make the Apache::TreeBrowser example in the eagle book wrong,
isn't it?
Doug, is there something I'm missing about installing
Apache::TreeBrowser?
--
Pierre Phaneuf
http://www3.sympatico.ca/pphaneuf/
: Please don't post large attachments to the list in future - send us a
link to a place we can see the code you are using on the web.
Sorry! I took extra care to make the package as small as possible, but I
understand the rule, thanks!
--
Pierre Phaneuf
http://www3.sympatico.ca/pphaneuf/
to translate, and you can't put a
translation handler just in a Location anyway.
Thanks for your help!
--
Pierre Phaneuf
http://www3.sympatico.ca/pphaneuf/
omes with Red Hat, and I can't find the
LWP anywhere. Not that I can't install it or use wget instead...
Thanks everyone!
--
Pierre Phaneuf
http://www3.sympatico.ca/pphaneuf/
feel that this might be a
real bug. I'll go submit something to the Apache bug tracking system
later...
--
Pierre Phaneuf
http://www3.sympatico.ca/pphaneuf/
I was thinking of using wget with "-O /dev/null". :-)
As for the cached database connection, I knew about that, but I was
thinking of the forking approach (where there was no cached connection
available (not that it couldn't be cached!)).
--
Pierre Phaneuf
http://www3.sympatico.ca/pphaneuf/
Matt Sergeant wrote:
Well you should read how Apache works. See
http://httpd.apache.org/docs/sections.html
It should clear things up for you.
Thank you, very interesting!
--
Pierre Phaneuf
http://www3.sympatico.ca/pphaneuf/
t want to hear
about...
--
Pierre Phaneuf
http://www3.sympatico.ca/pphaneuf/
t it would
be just that, a workaround, because on Doug's web server, it works.
--
Pierre Phaneuf
http://www3.sympatico.ca/pphaneuf/
darren chamberlain wrote:
In just about every cases that I could do, I have $r-path_info
identical to $r-uri!
If you are installing your handler as such:
Location /
SetHandler perl-script
PerlHandler My::Package
/Location
Then what you are seeing is correct. What does
Pierre Phaneuf wrote:
Then what you are seeing is correct. What does the relevent
httpd.conf snippet look like?
Just like in the eagle book (page 143):
Location /virtual
SetHandler perl-script
PerlHandler Apache::TreeBrowser
/Location
And I'm totally unable to get what you see
Did some more testing: $ENV{PATH_INFO} from a CGI script is okay, and so
is $r-path_info() from an Apache::Registry script. Why does the
PerlHandler one doesn't work right then?
--
"The 3 great virtues of a programmer: laziness, impatience and hubris."
-- Larry Wall
I'm really stumped with that one. How come Apache::Registry gets the
right information and I don't??? I tried doing the exact same thing, to
no avail.
I built the smallest possible testcase I could (attached to this
message, just fix the /home/pp/tmp in httpd.conf and startup.pl into
wherever
50 matches
Mail list logo