學習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學習網站
- 全連線神經網路學習筆記神經網路筆記
- 幾個有趣的線上python 程式碼學習網站Python學習網站
- Android多個網路連線Android
- 物聯網的學習路線
- 網路學習筆記(一):TCP連線的建立與關閉筆記TCP
- 菜鳥學網路之 —— 長連線和短連線
- PHP轉Java有沒有好的學習路線PHPJava
- 網路安全需要學習哪些內容?網路安全線上學習
- Linux學習成長路線上需要經歷哪幾個階段?Linux
- Docker容器的網路連線Docker
- 網路安全主要學習路線包含哪些?
- kubernetes pod內抓包,telnet檢查網路連線的幾種方式
- 大資料學習路線,一共分為這幾個階段大資料
- HikariCP連線池的學習
- 好程式設計師Java學習路線Java bean是個什麼概念程式設計師JavaBean
- 網路安全怎麼入門?按照這個學習路線方法,傻子都能學會!
- 好程式設計師Java學習路線之集程式設計師Java
- 好程式設計師Java學習路線JSP物件程式設計師JavaJS物件
- 好程式設計師Java學習路線分享SpringCloud程式設計師JavaSpringGCCloud
- 網路安全學習費用是多少?哪種學習模式好?模式
- 好程式設計師大資料學習路線之大資料自學路線二程式設計師大資料
- 好程式設計師大資料學習路線之大資料自學路線一程式設計師大資料
- 【學習】SQL基礎-011-TCLSQL
- 網路時延的幾個概念
- VirtualBox網路連線方式
- RPC連線btcd網路RPC
- 無線網際網路協議802.11學習協議
- 使用iwctl連線無線網路
- 女生能學網路安全技術嗎?網路安全技術學習路線
- 網路安全的學習方向和路線是怎麼樣的?
- 好程式設計師大資料學習路線分享Hbase指令學習程式設計師大資料
- 好程式設計師Java學習路線分享原生Ajax的使用程式設計師Java
- 幾種型別神經網路學習筆記型別神經網路筆記
- 網路安全等級保護分為幾級?網路安全學習教程
- 網路連線總超時?從四層模型上解析網路是怎麼連線的模型
- Linux網路連線的三種方式Linux