| jontec_ | thrig: any idea what the AddHandler looks like? Is it just AddHandler perl .something ? |
| aZaFred | yo yo |
| jpeg | jontec_: 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? |
| thrig | You could enable "AddHandler cgi-script .cgi" but that lets folks strew executables all over the place, which is very difficult to audit |
| aZaFred | I 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 |
| thrig | another option: something like ScriptAliasMatch /~(.*)cgi-bin/(.*) "/some/where/public_html/$1cgi-bin/$2" |
| jpeg | jontec_: go with thrig's idea. scriptaliasmatch looks like what you want. |
| thrig | aZaFred: 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 |
| CydeWeys | Where'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. |
| aZaFred | thrig, I though of that, but I am actually not forking an external command... looking POE |
| thrig | so, what are you doing? what do you mean by "command", then? |
| aZaFred | looks promising ;) |
| CydeWeys | Perlre only lists four of the modifiers, not including the one I want. |
| aZaFred | Net::Ping for now while testing |
| CydeWeys | haha, found it in perlop I was looking for o |
| buu | Oh god I hope you weren't. |
| CydeWeys | What's wrong with o ? |
| buu | Actually not that much, it's just useless 99% of the time and very rarely correctly used. |
| CydeWeys | Doesn'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? |
| buu | Unless it can. |
| thrig | /o can be an annoying source of bugs if the regex does change |
| CydeWeys | Mine can't change at all. |
| aZaFred | thrig, that POE will work just fine! Thanks for the pointer! |
| thrig | more 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) |
| simcop2387 | GumbyBRAIN: c:\ |