TclpFindExecutable doesn't work for CGI scripts under Apache
Closed / Out of Date219313ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 25 years ago
Descriptionplain2000-10-26 05:10:33
OriginalBugID: 3658 Bug
Version: 8.2.2
SubmitDate: '1999-11-23'
LastModified: '2000-10-25'
Severity: SER
Status: UnAssn
Submitter: techsupp
OS: All Unix
FixedDate: '2000-10-25'
ClosedDate: '2000-10-25'
Comments:
I can work around this by adding this code to the proWrapTclMain.c file in the TclPro wrapper sampleApp
after the call to TclpFindExecutable.
if (executableName == NULL) {
executableName = argv0;
}
The better place to fix it is inside TclpFindExecutable.
As a work-around, I plan to make new wrapper shells available on www.scriptics.com
ReproducibleScript:
This bug appears under applications created by TclPro wrapper, but is due to a bug in
TclpFindExecutable. To repeat, try any wrapped application as a CGI app under Apache.
Or, try [info nameofexecutable] in a regular CGI script - you'll get nothing.
ObservedBehavior:
The wrapped application cannot find itself, so it fails to find its init.tcl wrapped inside itself.
If you are lucky, init.tcl is found on disk.
DesiredBehavior:
A wrapped CGI application to work under Apache
dkf Ticket [219313ffff]: 1 change
[History diff]2000-11-19 18:23:44
dkf Ticket [219313ffff]: 1 change
[History diff]2001-01-31 17:36:19
dgp Ticket [219313ffff]: 1 change
[History diff]2001-02-08 12:55:11
hobbsplain2001-10-13 03:17:25
Logged In: YES user_id=72656 This is an old bug from Scriptics internal that had a work- around and related to prowrap particularly. Unless someone wants to find another example for this, it should be closed.
Log in (anonymous is fine) to add a comment.