#perl - Sun 11 Mar 2007 between 16:58 and 17:13



t35t0rcc='cc -n32 -mips3 -IPA'; well that sucks
:(
LeoNerddazjorz: 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
dazjorzLeoNerd: I fail to believe it's difficult too, but it proves it is.
Server downtime: two weeks.
LeoNerdWell, anyhow... You supply me with a sample plain perl CGI script and I'll wrap it up for you
dazjorzLeoNerd: a simple perl script that runs php, perl or python?
actionCPAN upload: Net-GPSD-Server-Fake-0.16 by MRDVT
CPANupload: Net-GPSD-Server-Fake-0.16 by MRDVT
LeoNerddazjorz: Anything. Just supply me something to wrap and I'll wrap it
dazjorzhttp://sial.org/pbot/23422
LeoNerd: if I run this script every request, it'll work fine, I hope.
LeoNerdNo
A single self-contained perl scrpit
That runs as a CGI
That I can run locally with no dependencies
dazjorz:/
LeoNerdJust write a "hello world" or whatever
dazjorzokay
LeoNerd: do you count CGI.pm as a dependency?
LeoNerdIt'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
dazjorzhere you go.
LeoNerdMarvellous
dazjorz: http://home.leonerd.org.uk/perltest/examples/exec-cgi.fcgi
^-- output
shortenLeoNerd's url is at http://xrl.us/u9mq
dazjorzI see.
LeoNerdhttp://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?
dazjorzLeoNerd: 403 Access Denied
LeoNerdOdd.. .:/
Try again with .txt on the end
(webserver was trying to execute it and told it can't)
t35t0ranyone know how to force install CPAN modules?
e.g. if make test fails
dazjorzLeoNerd: and what do I do with this?
somianYup, I do.

Page: 1 8 15 22 29 36 43 50 57 64 71 78 85 

IrcArchive