Re: Wrapped application directory oddity
- From: Melissa Schrumpf <m_schrumpf_at_yahoo_com_NOT@xxxxxxxxxxxxx>
- Date: Fri, 29 Jun 2007 17:28:28 -0400
In article <mMchi.2140$Od7.623@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
"Jeff Godfrey" <jeff_godfrey@xxxxxxxxx> wrote:
"Jeff Godfrey" <jeff_godfrey@xxxxxxxxx> wrote in message
news:6aXgi.1993$zA4.138@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi All,
I have a TclApp wrapped application running on a remote web server.
More details on this subject...
I just had someone with the proper authority run my test CGI
application on the server box from a command terminal. The
application just issues the appropriate HTTP header, then spits out
some relevant path info from [info nameofexecutable], [info script],
[pwd], and $starkit::topdir.
Interestingly, when run that way, the returned paths are all
legitimate. That is, they all begin with "D:/WebHosting/...". Now,
when the same wrapped application is run as a CGI program via a
web-browser, the return values of most of the above are botched.
Specifically:
[pwd] - still OK (returns "D:/WebHosting/..."
[info nameofexecutable], [info script], and [$starkit::topdir] are bad
(return "//?/D:WebHosting/..."
I assume the CGI environment is more restrictive than that of the
local command shell test, which must be lending itself to this
problem. Any ideas on what would cause the botched paths under CGI?
"//?/D:WebHosting/..."
http://machinename/D:WebHosting
My guess is it is the method the web server uses to spawn the subprocess.
Note that on windows, creating a new process can actually have *two*
arguments that define what executable is run, and they are used in
different ways.
Google CreateProcess(), find it at MSDN, and read the sections on
lpApplicationName and lpCommandLine for more info.
--
MKS
.
- Follow-Ups:
- Re: Wrapped application directory oddity
- From: Jeff Godfrey
- Re: Wrapped application directory oddity
- References:
- Wrapped application directory oddity
- From: Jeff Godfrey
- Re: Wrapped application directory oddity
- From: Jeff Godfrey
- Wrapped application directory oddity
- Prev by Date: Re: TCL_evalFile
- Next by Date: Re: Wrapped application directory oddity
- Previous by thread: Re: Wrapped application directory oddity
- Next by thread: Re: Wrapped application directory oddity
- Index(es):
Relevant Pages
|