> I haven't been following this thread closely, but in case you haven't tried
> it, you may wish to try:
> #!/home/rebol/rebol --cgi -s

Hi Scott
Thanks. Nice try..

--cgi -s        << No. script just hangs.
-cs             << It works, but only for read+write in the *current* directory.

Unless there is some other incantation  using 'secure I am suspecting it might
be only possible when the cgi script is owned by apache.

However I did find a healthy looking example of the sort thing I ma needing to
do:
http://www.reboltech.com/library/html/cgicomment.html

REBOL [
    Title: "CGI Web Page Comment Poster"
    Author: "Carl Sassenrath"
    Date:  14-Sep-1999
    File:  %cgicomment.r
    Purpose: {Allows viewers to add comments to a web page.
        (needs webcomment.r to create example forms file).}
...snip code...

;-- The file name of the article is provided in a hidden input
;   field within the HTML of the article.  Use this string to
;   build the path to the file from CGI dir.  Remember that the
;   file must have write permissions if you want add comments.
file: join %../web/ cgi/file

;-- Create the text of the new comment from the CGI input.
;   If the type is code, then display it as preformated TTY.
new-comment: make-comment cgi/from now either cgi/type = "code" [
    rejoin ["<pre>" cgi/comment </pre>]][cgi/comment]

;-- Read the HTML file, add the newest comment to it, and write
;   it out.  An HTML comment is used to mark where it goes.
page: read file
insert find page <!--comments--> new-comment
write file page


Carl notes "Remember that the file must have write permissions if you want add
comments."

To be sure, I set my target "uploads" folder writable to all:
drwxrwxrwx    2 jasonic  jasonic      4096 Sep  3 11:46 uploads

There are images I have uploaded via http:
-rw-r--r--    1 apache   apache      10644 Aug 30 18:37 test.jpg

and for comparison, a file which was generated by script from bash shell, not
cgi:
-rw-rw-r--    1 jasonic  jasonic        69 Sep  4 18:44 testupdir.txt

So this may be entirely an Apache thing. What I am need to determine is how much
control I have within REBOL, to fix this situation.

any ideas?
./Jason

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to