Hi, Tom,

Given a file something like the following (for example):

8<----------beginning of demo.r----------
!#/usr/bin/rebol -sq
REBOL []
print {Content-type: text/html

<html>
<head><title>Demo!</title></head>
<body bgcolor="#ffccff">
<h1>Demo!</h1>
<p>This is... (are you ready for it?)... a demo!</p>
</body>
</html>
}
8<-------------end of demo.r-------------

(where the path to your REBOL interpreter is sustituted
appropriately, of course), you can then issue the shell
command

    chmod 755 demo.r

after which

    demo.r

is a legitimate command-line command.  (It works for other
things than CGI as well...)

Hope this helps!

-jn-


Tom Foster wrote:
> 
> Hey guys,
> 
> A long time ago, in a galaxy far, far away, someone posted
> an example of how to set file permissions with rebol, as in:
> 
>   chmod 755 file.r
> 
> Could someone please help me locate the old post, or just
> tell me how it's done?
> 
> Thanks,
> 
> -tom
> 
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.
-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to