Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Expt_04_TCL Hello world NL Lab Roll No: 121A3031

Experiment 04–Tcl Hello World

Roll No. 121A3031


Name Yadhukrishna Nair
Class SE-IT
Subject NL Lab
LO Mapped LO3:  ITL401.3 (Demonstrate and measure different network
scenarios and their performance behavior.)
Expt_04_TCL Hello world NL Lab Roll No: 121A3031

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

set ns [new Simulator]


$ns at 1 "puts \"hello world\""
$ns at 1.5 "exit"
$ns run

Open the terminal and execute the hello.tcl by $ ns hello.tcl

Output:

Conclusion: Thus we have written our first tcl script and executed it successfully in ns2.

You might also like