A Conversation for The H2G2 Programmers' Corner

*mumbling something along the lines of "I wish I never started this...."*

Post 1

Rat, who can't remember his way round this bloody thing.

Ok, problems with perlsmiley - grr(again)...

I had all these nice fancy scripts working and doing well then I had to switch servers...now I'm stuck with windoze 2000smiley - grrsmiley - erm...and, of course, the support is as good as the o/s (ie, not very good at allsmiley - erm).

Whenever I try to call a cgi script from a SHTML file unsing
<!--#include virtual="cgi-bin/scriptname.cgi"-->, I'm getting a 404 error...when I try using <!--#exec cmd="cgi-bin/scriptname.cgi"--> I get "cmd cannot be executed on this server".

Any ideas on what I'm doing wrong?


*mumbling something along the lines of "I wish I never started this...."*

Post 2

Peet (the Pedantic Punctuation Policeman, Muse of Lateral Programming Ideas, Eggcups-Spurtle-and-Spoonswinner, BBC Cheese Namer & Zaphodista)

Not really my specialty, but I think Windows has a nasty habit of expecting backslashes in web file paths, while *nix isn't fussy. try using "\" instead of "/"...smiley - huh


*mumbling something along the lines of "I wish I never started this...."*

Post 3

Rat, who can't remember his way round this bloody thing.

tried it.....no joy though smiley - wah

Thanks anyway smiley - ok


*mumbling something along the lines of "I wish I never started this...."*

Post 4

Peet (the Pedantic Punctuation Policeman, Muse of Lateral Programming Ideas, Eggcups-Spurtle-and-Spoonswinner, BBC Cheese Namer & Zaphodista)

Silly question, but I assume when you moved everything over, you set the file permissions of the scripts to include "executable"...?


*mumbling something along the lines of "I wish I never started this...."*

Post 5

Rat, who can't remember his way round this bloody thing.

ummm...no....but I didn't do that on the unix server either...

how do I do that?


*mumbling something along the lines of "I wish I never started this...."*

Post 6

Peet (the Pedantic Punctuation Policeman, Muse of Lateral Programming Ideas, Eggcups-Spurtle-and-Spoonswinner, BBC Cheese Namer & Zaphodista)

Er... I'll have to look that up... I'll get back to you in a few minutes... smiley - smiley


*mumbling something along the lines of "I wish I never started this...."*

Post 7

Peet (the Pedantic Punctuation Policeman, Muse of Lateral Programming Ideas, Eggcups-Spurtle-and-Spoonswinner, BBC Cheese Namer & Zaphodista)

Right-click the files, click the "Security" tab and see that they have "Read and Execute" (as opposed to just "Read") permissions set for "Everyone".

(I knew it was something like that, I just haven't had to do it since NT4 days... smiley - biggrin)


*mumbling something along the lines of "I wish I never started this...."*

Post 8

Peet (the Pedantic Punctuation Policeman, Muse of Lateral Programming Ideas, Eggcups-Spurtle-and-Spoonswinner, BBC Cheese Namer & Zaphodista)

Oh, and you need to be logged in with Administrator priveleges before you can change them... smiley - ok


*mumbling something along the lines of "I wish I never started this...."*

Post 9

Rat, who can't remember his way round this bloody thing.

Done all that and its no good... #include virtual is still giving 404 error and #exec cmd is giving "The CMD option is not enabled for #EXEC calls" smiley - erm

I hate windoze smiley - grr

*learns 'cheap' doesn't mean 'good' when it comes to web-hosting*


Key: Complain about this post

Write an Entry

"The Hitchhiker's Guide to the Galaxy is a wholly remarkable book. It has been compiled and recompiled many times and under many different editorships. It contains contributions from countless numbers of travellers and researchers."

Write an entry
Read more