| synger | use diagnostics; use CGI::Carp qw(fatalsToBrowser); |
| Randal | step 1 - create that 4 line script step 2 - make it executable step 3 - use a browser to trigger it yes |
| butterball | 1 done, 2 done, 3 done -- but internal server error |
| Randal | then go look at your webserver log |
| butterball | i called the file test.pl |
| Randal | tell 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. :) |
| revdiablo | test.jklol |
| action | Randal . 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 |
| perlbot | Paste your code to http://sial.org/pbot/perl or http://erxz.com/pb and #perl will be able to view it. |
| Randal | use 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 |
| Randal | uh - why do I see \n in that message |
| butterball | good q |
| Randal | ok, that should work you're on a system with /bin/sh, right? a good healthy unix system? |
| butterball | yep |
| Randal | ok - from here out, go talk to your webmaster if you can't get THAT to work, the rest is irrelevant |
| revdiablo | That's the same error I get if I feed the script directly to perl |
| Randal | that's a "you must be this high for anything else for us to make sense of it" |
| revdiablo | His web server is executing it as perl |
| Randal | OK, try not calling it .pl like we said revdiablo - thanks for that I was too lazy to try that. :) |
| revdiablo | heh |
| Randal | although I had my suspcions. :) |
| action | Randal waits |
| Randal | waits |
| butterball | i called it test it just outputs like a .txt file on the screen the code |