in reply to How can I check web server permissions for 'cgi-bin' directory ?

I take it you don't have shell (ssh, telnet, etc) access to the machine.

The best thing to do is up a simple shell script.

#!/bin/sh # let the browser handle the data properly (w/o this it will fail) echo "Content-type: text/html\n\n"; # some cheesy data echo "Hello.";
Also, check with the admin and make sure the permissions are set properly on the cgi script. This can vary wildly from system to system, but a relatively sure best is a+x. FTP might give the perms with an "ls -als" command. in a+x mode, there should be 3 x's (owner, group, global).
  • Comment on Re: How can I check web server permissions for 'cgi-bin' directory ?
  • Download Code

Replies are listed 'Best First'.
RE: Answer: How can I check web server permissions for 'cgi-bin' directory ?
by merlyn (Sage) on Aug 02, 2000 at 17:23 UTC
    I prefer sending text/plain for the content header when doing tests like this. That way I don't have to worry about nasty less-thans and greater-thans and ampersands.

    -- Randal L. Schwartz, Perl hacker