#perl - Sun 29 Apr 2007 between 00:00 and 00:46

NY Lost Funds



jontec_thrig: any idea what the AddHandler looks like? Is it just AddHandler perl .something ?
aZaFredyo yo
jpegjontec_: you need to ScriptAlias that one particular directory. ScriptAlias doesn't take wildcards.
that's the problem. it's not a matter of adding a handler unless you turn on Options ExecCGI for that directory and forgo the ScriptAlias'ing.
jontec_jpeg: but then I could only alias cgi-bin to one specific user's cgi-bin folder, correct?
thrigYou could enable "AddHandler cgi-script .cgi" but that lets folks strew executables all over the place, which is very difficult to audit
aZaFredI have a quick question, if I have a while loop that runs a command a couple hundred times, what is a good way for making the program run more than one command in the background?
A sort of multi-threaded loop
jontec_here's what I have: http://pastie.caboo.se/57379
thriganother option: something like ScriptAliasMatch /~(.*)cgi-bin/(.*) "/some/where/public_html/$1cgi-bin/$2"
jpegjontec_: go with thrig's idea. scriptaliasmatch looks like what you want.
thrigaZaFred: shell and &, fork/exec, any of many process management modules on CPAN
if you want "A sort of multi-threaded loop" on steroids, you want POE
CydeWeysWhere's a list of regex modifiers? You know, something like ///g ... but I don't want g, I want another one, but I don't remember the letter.
aZaFredthrig, I though of that, but I am actually not forking an external command...
looking POE
thrigso, what are you doing?
what do you mean by "command", then?
aZaFredlooks promising ;)
CydeWeysPerlre only lists four of the modifiers, not including the one I want.
aZaFredNet::Ping for now while testing
CydeWeyshaha, found it in perlop
I was looking for o
buuOh god
I hope you weren't.
CydeWeysWhat's wrong with o ?
buuActually not that much, it's just useless 99% of the time and very rarely correctly used.
CydeWeysDoesn't it save efficiency by not having to compile the regex each time?
I have a composite regex that nevertheless never changes.
/o can't hurt, right?
buuUnless it can.
thrig/o can be an annoying source of bugs if the regex does change
CydeWeysMine can't change at all.
aZaFredthrig, that POE will work just fine! Thanks for the pointer!
thrigmore avoidable if you set the regex at the top, via: my $REGEX_THAT_NEVER_CHANGES_EVER = qr/.../o;
then the /o is visible, not hidden somewhere in the guts of the script
jontec_this is all I needed: AddHandler cgi-script .cgi .pl
I had my idea of how the handlers are setup twisted
(and that was a malformed sentence)
simcop2387GumbyBRAIN: c:\

Page: 2 9 16 23 30 37 44 51 58 65 72 79 86 

IrcArchive

NY Lost Funds