Dear all

I have one stupid question can some one tell me how can save file in terminal 
for example I have written the following tcl file I want to save it as tcl file 
:


 

% set ns [new Simulator]
_o4
% set nf [open out.nam w]
file3
% $ns namtrace-all $nf
file3
% proc finish {} {
global ns nf
$ns flush -trace
close $nf
exec nam -a out.nam &
exit 0
set n0 [$ns node]
set n1 [$ns node]
$ns duplex -lnk $n0 $ n1 1mb 10ms DropTail
$ns at 5.0 "finish"
$ns run

how can I save this file as tcl file in the home directory. Iam new in NS2




      

Reply via email to