Currently, there isn't any way to do this under NCSA httpd. What you can do
for now is write a short htbin script which takes as the first argument the
name of the source file and spits back something of type text/html
containing a <PRE> at the beginning. Such a script could be as simple as:
--cut
#!/bin/sh
echo Content-type: text/html
echo
echo "<PRE>"
cat $1
echo "</PRE>"
--cut
Note that this doesn't work for files with weird characters like spaces or
ampersands et. al., but you get the idea.
The way you'd access this is
http://your.server/htbin/src?/your/source/path/file.f
You can add HREFs to documents with question marks in them, and you can Open
URL in mosaic with the question mark in there and it will send it on to the
server.
We are planning to add the capability to have a script which looks like a
directory in the path name but is in actuality a file. I.e. if you were to
do:
http://your.server/htbin/src/your/source/path/file.f
The server would parse the URL, figure out that /htbin/src is actually a
server script, and execute it like
/htbin/src /your/source/path/file.f
* Perhaps someone is already working on such a beast? If not, I could
* use some fairly specific hints. I'm new to administrating httpd and
* Mosaic, so the knowledge base is low. I'm not on the internet so
* sound advice would be more appreciated than a pointer to an URL
* (though I can surf the 'net via my delphi account from home when I
* have to, so URLs would be appreciated as well).
*/
Hope this helps
--Rob