> FINALLY!!!
> No matter what I tried I could not get the "send"
> command to work on my NT4/IIS3.0 via a certain cgi
> script. If I called a basic "send" script on its own
> via cgi it worked fine, the console worked
> fine...EVERYTHING WAS WORKING FINE... except the
> script I NEEDED to work.
Nice you solved it. I'm still trying to solve my CGI problem, the one
that concerns file access.
Reminder: my rebol CGI script cannot open local files for
reading/parsing.
I thought it was a system setup issue, so in a previous thread I
insisted on the NT / Apache combo.
I also thought it was related to calling child scripts with do/args.
So I debugged thoroughly :
I included all the code in one CGI script
I migrated the script on a Solaris machine that runs Netscape web server.
Same problem !
Now if someone could explain me how the following is possible :
list-dir %/existing/path/
produces a correct directory listing. But with the same path,
print exists? %/existing/path/
results in false.
Note: the script does run with execution permission.
> Here's what happened...
> My script was something like...
> the-script-in-question.r ;residing in the cgi
> folder... and had the following code...
> do %/c/remote-folder/file1.r ;a irrelevant script
> do %/c/remote-folder/file2.r ;a script that looks up
> the e-mail address
> do %/path-to-cgi/mail.r ;the mailing script that would
> send the mail
> This would not work, but if I called the mail.r script
> directly via cgi.. it would. THIS COMPLETELY BAFFLED
> ME.
> As it turns out, when you call a script in the cgi-bin
> it will execute normally... UNTIL the script LEAVES
> the cgi-bin to read or do ANYTHING! (as in going out
> to read file1.r and file2.r) When it comes back to
> the parent script (in the cgi-bin) it seems to have
> picked up a NO EXECUTE clause, and thus, would not
> "send" anything.
> The simple fix was to move the do %/path-to-cgi/mail.r
> to the top of the list as such
> do %/path-to-cgi/mail.r
> do %/c/remote-folder/file1.r
> do %/c/remote-folder/file2.r
> That only took a WEEK!
> TBrownell
> __________________________________________________
> Do You Yahoo!?
> Send instant messages with Yahoo! Messenger.
> http://im.yahoo.com/
--
[EMAIL PROTECTED]
http://perso.worldonline.fr/mutant