#perl - Sat 17 Mar 2007 between 00:22 and 00:28



syngeruse diagnostics; use CGI::Carp qw(fatalsToBrowser);
Randalstep 1 - create that 4 line script
step 2 - make it executable
step 3 - use a browser to trigger it
yes
butterball1 done, 2 done, 3 done -- but internal server error
Randalthen go look at your webserver log
butterballi called the file test.pl
Randaltell me what it says there
it shouldn't matter what you call it
if it's in a CGI_bin area
in fact, calling it .pl is probably deceptive. :)
revdiablotest.jklol
actionRandal . o O (I'm gonna need a stiff drink after this)
Randal. o O (I'm gonna need a stiff drink after this)
butterball[Fri Mar 16 23:24:45 2007] [error] syntax error at /var/www/vhosts/z4tl.info/httpdocs/msp/test.pl line 2, near "type:"\n
Randal"syntax error"?
perlbot, paste
perlbotPaste your code to http://sial.org/pbot/perl or http://erxz.com/pb and #perl will be able to view it.
Randaluse that pastebin, paste your 4-line script
pasteling"butterball" at 63.76.118.203 pasted "test.pl" (4 lines, 51B) at http://sial.org/pbot/23543
Randaluh - why do I see \n in that message
butterballgood q
Randalok, that should work
you're on a system with /bin/sh, right?
a good healthy unix system?
butterballyep
Randalok - from here out, go talk to your webmaster
if you can't get THAT to work, the rest is irrelevant
revdiabloThat's the same error I get if I feed the script directly to perl
Randalthat's a "you must be this high for anything else for us to make sense of it"
revdiabloHis web server is executing it as perl
RandalOK, try not calling it .pl
like we said
revdiablo - thanks for that
I was too lazy to try that. :)
revdiabloheh
Randalalthough I had my suspcions. :)
actionRandal waits
Randalwaits
butterballi called it test
it just outputs like a .txt file on the screen the code

Page: 4 11 18 25 32 39 46 53 60 67 74 81 88 95 

IrcArchive