[Metacard] Re: Darwin question again...
Richard MacLemale
rmaclemale at earthlink.net
Fri Nov 23 19:07:01 EST 2001
Dave Cragg typed:
> I've had it working before, so it is possible.
Mondo cool.
> Make sure execute
> permissions are set on both the darwin engine and the mt script
> files. (chmod 755)
Done.
> If the engine is named "mc", and is in the CGI-Executables folder,
> your scripts should start with #!mc
Done.
> Call the script from a browser with the address:
> serverName/cgi-bin/yourscript.mt
Done!
> (I think Apache is pre-configured to run CGI scripts on OS X, but you
> might want to check in the http.conf file if things aren't working.)
>
> Also, from memory, I think the script files may require unix-style
> line endings. (Or is that for Perl scripts!!!) One way to do this is
> to write them in a Metacard field and save the contents of the field
> using binary write so no conversion is done (put field x into url
> "binfile:myfilepath.mt")
I'll check the config file. I know the test .mt file I wrote works, because
it runs fine when I use "./mt" but won't work via Apache. Which to my
(feeble) mind means my problem might be with Apache...
:)
Richard MacLemale
Instructional Technology Specialist
James W. Mitchell High School
More information about the metacard
mailing list