如何删除rebol脚本安全级别提示

时间:2014-06-08 23:45:25

标签: windows rebol rebol2

我想在使用load/library

时删除提示

1)来自Crimson编辑

  • 我尝试使用-s secure allow参数加载脚本,但没有效果

2)在脚本secure [ library allow ]

  • 给了我另一个提示"脚本请求权限以降低安全级别"

如何免费管理Rebol安全提示?

我更喜欢脚本级别(更一般的)解决方案。

2 个答案:

答案 0 :(得分:2)

您是否尝试过以这种方式启动脚本?

REBOL --secure none script.r

这应该有效。

请参阅http://www.rebol.com/r3/docs/functions/secure.html

答案 1 :(得分:1)

您必须将-s作为Rebol的启动参数。

>> usage

命令行用法是:

REBOL <options> <script> <arguments>

所有字段都是可选的。支持的选项包括:

--cgi (-c)       Check for CGI input
--do expr        Evaluate expression
--link url       Connect to Link
--help (-?)      Display this usage information
--nowindow (-w)  Do not open a window
--noinstall (-i) Do not install (Link, View)
--quiet (-q)     Don't print banners
--reinstall (+i) Force an install (Link, View)
--script file    Explicitly specify script
--secure level   Set security: allow ask throw quit
--trace (-t)     Enable trace mode
--uninstall (-u) Uninstall REBOL (Link, View)
--version tuple  Minimum version of script, when URL (View)
--noviewtop (-v) Do not start viewtop (view desktop)

特殊命令行选项:

+q               Force not quiet (Link, View)
-s               No security
+s               Full security
-- args          Provide args without a script

示例:

REBOL script.r
REBOL -s script.r
REBOL script.r 10:30 test@domain.dom
REBOL --do "verbose: true" script.r
REBOL -cswq
REBOL --cgi --secure throw --script cgi.r "debug: true"
REBOL --version 1.2.3 http://www.rebol.net/test.r ; view only

尽管R3中的用法显示相同,但​​我认为Rebol3中的安全性没有或没有完全发挥作用。此外,一些最新版本的Rebol2在-i或--noinstall方面的行为略有不同。