Welcome to LQ.
Code is supposed to be presented in Code Tags :
Type [/code] at code end, and [code] at code start.
.
http://www.linuxquestions.org/questi....php?do=bbcode
.
http://www.linuxquestions.org/questi...gs-4175464257/
.... Or use the ` # ´ button in the 'Advanced Editor'.
* Please edit post #1, to Code Tags : The 'Edit' button.
Your »tcl code« : Not easy to read.
Suggest : Split up the text, into sections.
* The sequence may be wrong :
As it is now it can output 'Segmentation fault' only.
Here is a nice example that works : ZHIBIN-WU.tcl ( 1 2 3 )
http://www.winlab.rutgers.edu/~zhibi.../NS_examp.html
-