學習tcl的幾個好網路連線
1.http://archive.eso.org/skycat/docs/tclutil/tclutil.44.html
2.http://vzzllblog.bokee.com/4711864.html
3.http://tmml.sourceforge.net/doc/tcl/Tcl_Main.html
4.http://www.tcl.tk/man/tcl8.4/TclLib/Tcl_Main.htm
5.http://www.fundza.com/tcl/script_shell/arguments.html
---------------------------------------------------------------------------
| Tcl
|
| Introduction Although Tcl scripts/procedures can be controlled via graphical user interfaces (GUI's) that have been implemented with the Tk toolkit, it is often easier to use traditional command line techniques. Another tutorial, using the command line, gave a simple example of invoking a Tcl script from the command line.
arguments Items of data passed to a script from the command line are known as arguments. For example, take the simple script presented in using the command line tutorial. puts [expr 3 + 2] Lets assume the script has been saved as add.tcl and that the present working directory of the shell window in which we are working matches the directory in which the script has been saved. We know the script can be run using the following command, tclsh add.tcl Of course the output is always the same because the values being added are hard-coded into the script. The script would be more useful if we could pass values to the script from the command line. tclsh add.tcl 23 15 The method by which numbers can be passed into, and used by a script, is as follows. |
| argc argv argv0 All Tcl scripts have access to three predefined variables. if { $argc != 2 } { puts "The add.tcl script requires two numbers to be inputed." puts "For example, tclsh add.tcl 2 5". puts "Please try again." } else { puts [expr [lindex $argv 0] + [lindex $argv 1]] } The lindex command returns the first and second items from the list of arguments entered at the command line. Items in a list are counted from zero. |
相關文章
- VMware連線網路的幾種方式
- 全連線神經網路學習筆記神經網路筆記
- 學習網路安全的幾個有用影片,供大家分享。
- 一個學習Python的好連結Python
- 寫好SQL的幾個好習慣SQL
- 給大家推薦幾個好的學習Oracle和Linux的網站OracleLinux網站
- 物聯網的學習路線
- 網路學習筆記(一):TCP連線的建立與關閉筆記TCP
- Android多個網路連線Android
- 菜鳥學網路之 —— 長連線和短連線
- PHP轉Java有沒有好的學習路線PHPJava
- 學習sybase較好的一個網站網站
- 網路安全主要學習路線包含哪些?
- 學習作業系統的幾個有用連結,分享作業系統
- 保護無線網路安全連線九個技巧
- 發現一個好的ORACLE學習網站Oracle學習網站
- 學習連連看 連線線之謎+道具的使用
- 推薦幾個swift學習網站Swift學習網站
- zt_virtualbox幾種網路network連線方式
- 記錄幾個不錯的學習網站學習網站
- Docker容器的網路連線Docker
- 無線網路維護工作的幾個重要方面
- HikariCP連線池的學習
- 好程式設計師Java學習路線之集程式設計師Java
- 【SQL 學習】表連線--natural join 的一個bugSQL
- 好程式設計師Java學習路線Java bean是個什麼概念程式設計師JavaBean
- 嵌入式開發學習的幾種線路圖方向
- 大資料學習路線,一共分為這幾個階段大資料
- TCL學習之info命令
- 網路安全學習費用是多少?哪種學習模式好?模式
- 好程式設計師大資料學習路線分享Hbase指令學習程式設計師大資料
- 網路安全怎麼入門?按照這個學習路線方法,傻子都能學會!
- 推薦幾個SQL線上學習網站SQL學習網站
- 好程式設計師Java學習路線分享原生Ajax的使用程式設計師Java
- 資料庫的網路連線資料庫
- 好程式設計師Java學習路線JSP物件程式設計師JavaJS物件
- 好程式設計師Java學習路線分享SpringCloud程式設計師JavaSpringGCCloud
- 女生能學網路安全技術嗎?網路安全技術學習路線