Hi,
[EMAIL PROTECTED] wrote:
>
> The following code inserts a line of text into
> a file after a specific cue and rewrites it:
> ;=========================================================
> fp: open/lines/allow/mode %test.txt [read write] [lines]
> forall fp
> [
> if(find first fp "three")
> [
> print first fp
> insert next fp "line four"
> ]
> ]
> update fp
> close fp
> ;This works fine, but I have to respond to the
> ; Rebol - Security Check prompt.
> ;If I run rebol from the command line as thus:
> ; rebol -s FileIO.r to disable the security check
> ; is disabled
>
> ; I would like to be able to disable the security check from
> ; the code itself:
> ; After review example files, it appears that the following as
> ; the first line should do it:
> #!rebol -s
I don't know what operating system you use, but this only works when the
script is started from UNIX shells, and full (not relative to current
directory) path to rebol must be provided. The script should have
"execute" bit set and you start it with ./FileIO.r from the shell
prompt.
> ; I used the cgi examples (cgi*.r) as reference
> ; regardless of this usage, the Rebol - Security Check
> ; prompt still appears
> What else should I be doing?
--
Michal Kracik