2014-06-08 23 views
1

我想刪除的提示使用load/library如何刪除REBOL腳本安全級別提示

1時),從深紅編輯

  • 我試圖加載使用-s secure allow論點沒有影響腳本

2)腳本中secure [ library allow ]

  • 給我另一個提示「腳本請求權限以降低安全級別」

如何免費管理Rebol安全性?

我更喜歡腳本級別(更一般)的解決方案。

+0

我使用EditPlus和我的命令行設置是:rebol.exe --secure allow --script「$(FilePath)」 – endo64

+0

我仍然想知道如何在Rebol應用程序中免費提供鏈接庫。 – OneArb

+0

你的意思是一個封閉的Rebol腳本?如果是這樣,把它放在標題中:encap:[secure none title「MyApp」] – endo64

回答

1

你必須給-s作爲啓動參數雷博爾。

>> 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 [email protected] 
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上有一些稍微不同的行爲。