Professional Documents
Culture Documents
Expt 04 CNND 121A3024
Expt 04 CNND 121A3024
Aim :
Introduction to Tcl Hello Programming.
Theory:
Open a text editor and write the codes there and save it with .tcl file extension
Example: hello.tcl
Program :
set ns [new Simulator]
$ns at 1 "puts \"hello world\""
$ns at 1.5 "exit"
$ns run
Conclusion:
Thus we have written our first tcl script and executed it successfully in ns2.