| t35t0r | cc='cc -n32 -mips3 -IPA'; well that sucks :( |
| LeoNerd | dazjorz: also note that fortune isn't expecting to be a CGI anyway, so if you use something that is, you'll have to handle its own header dazjorz: If you give me a simple example perl script as a CGI, I'll have a look at hacking something up I fail to believe it's really this difficult |
| dazjorz | LeoNerd: I fail to believe it's difficult too, but it proves it is. Server downtime: two weeks. |
| LeoNerd | Well, anyhow... You supply me with a sample plain perl CGI script and I'll wrap it up for you |
| dazjorz | LeoNerd: a simple perl script that runs php, perl or python? |
| action | CPAN upload: Net-GPSD-Server-Fake-0.16 by MRDVT |
| CPAN | upload: Net-GPSD-Server-Fake-0.16 by MRDVT |
| LeoNerd | dazjorz: Anything. Just supply me something to wrap and I'll wrap it |
| dazjorz | http://sial.org/pbot/23422 LeoNerd: if I run this script every request, it'll work fine, I hope. |
| LeoNerd | No A single self-contained perl scrpit That runs as a CGI That I can run locally with no dependencies |
| dazjorz | :/ |
| LeoNerd | Just write a "hello world" or whatever |
| dazjorz | okay LeoNerd: do you count CGI.pm as a dependency? |
| LeoNerd | It's a dependency I have; so that's fine |
| pasteling | "dazjorz" at 212.123.140.190 pasted "simple CGI script" (7 lines, 162B) at http://sial.org/pbot/23423 |
| dazjorz | here you go. |
| LeoNerd | Marvellous dazjorz: http://home.leonerd.org.uk/perltest/examples/exec-cgi.fcgi ^-- output |
| shorten | LeoNerd's url is at http://xrl.us/u9mq |
| dazjorz | I see. |
| LeoNerd | http://home.leonerd.org.uk/local/exec-cgi.fcgi Source If you want setuid/setgid is well, that'll want a bit more magic, have to do a manual pipe/fork/dup/exec rather than open3. do you want me to write that bit too? |
| dazjorz | LeoNerd: 403 Access Denied |
| LeoNerd | Odd.. .:/ Try again with .txt on the end (webserver was trying to execute it and told it can't) |
| t35t0r | anyone know how to force install CPAN modules? e.g. if make test fails |
| dazjorz | LeoNerd: and what do I do with this? |
| somian | Yup, I do. |