ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Apache Web-Serving with Mac OS X: Part 2
Subject:   PATH Environment Variable from printenv
Date:   2002-04-03 20:48:46
From:   yaruki
When I run the "printenv" CGI script from the main site folder, the PATH environment variable looks like:
"/usr/bin:/bin:/Users/shortname", where shortname is my short login name on that box.
Questions:
1) How is this path getting set?
2) What is this PATH, exactly? Is it a path that CGI scripts search for other executables? It doesn't seem to have anything to do with the URL request itself.
3) It seems like that last entry shouldn't be there, should it? Why or why not?

1 to 1 of 1
  1. Kevin Hemenway photo PATH Environment Variable from printenv
    2002-04-16 17:00:20  Kevin Hemenway | O'Reilly AuthorO'Reilly Blogger [View]

1 to 1 of 1