Re: [ns] Problem in mark greig's wireless1.tcl

2013-04-15 Thread Tuan LE HUU NGUYEN

On 15/04/2013 1:18 SA, Sahil Sharma wrote:
> Hi,
>
> Thanks for the reply. It worked for me.The tcl script wireless1.tcl is
> working perfectly now.
>
> I have one more problem, in tutorial its written "Running wireless1-out.nam
> we see the three mobilenodes moving in nam window. "
> I see that wireless1-out.nam have been created in the directory but have no
> idea how to run it. What is the exact command to run ".nam" file.
>

It's easy, you type this command in Terminal (assume that the file named 
wireless1-out.nam)
nam wireless1-out.nam



Re: [ns] Problem in mark greig's wireless1.tcl

2013-04-14 Thread Sahil Sharma

Hi,

Thanks for the reply. It worked for me.The tcl script wireless1.tcl is
working perfectly now.

I have one more problem, in tutorial its written "Running wireless1-out.nam
we see the three mobilenodes moving in nam window. "
I see that wireless1-out.nam have been created in the directory but have no
idea how to run it. What is the exact command to run ".nam" file.



On Sun, Apr 14, 2013 at 2:40 PM, Guanglou Zheng wrote:

> Hi Sahil
>
> I think, you may need to run the wireless1.tcl in the directory of " tcl/ex
> ".
>
> Regards,
> Gordon
>
>
>
> -Original Message-
> From: ns-users-boun...@isi.edu [mailto:ns-users-boun...@isi.edu] On Behalf
> Of Sahil Sharma
> Sent: Sunday, 14 April 2013 8:45 AM
> To: ns-users@ISI.EDU
> Subject: [ns] Problem in mark greig's wireless1.tcl
>
>
> Hi,
>
> I am getting this problem when running wireless1.tcl in mark greig's
> tutorials.
>
> praving@ubuntu:~/Downloads$ ns wireless1.tcl num_nodes is set 3
> warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
> INITIALIZE
> THE LIST xListHead Loading connection pattern. couldn't read file
> "../mobility/scene/cbr-3-test": no such file or directory while executing
> "source.orig ../mobility/scene/cbr-3-test"
> ("uplevel" body line 1)
> invoked from within
> "uplevel source.orig [list $fileName]"
> invoked from within
> "if [$instance_ is_http_url $fileName] { set buffer [$instance_ read_url
> $fileName] uplevel eval $buffer } else { uplevel source.orig [list
> $fileName] ."
> (procedure "source" line 8)
> invoked from within
> "source $val(cp)"
> (file "wireless1.tcl" line 88)
> praving@ubuntu:~/Downloads$ tcl/ex/wireless-mitf.tcl
> bash: tcl/ex/wireless-mitf.tcl: No such file or directory
>
>
> How can I remove this. Please help.
> --
> Regards,
> Sahil Sharma
>
> $25: for you a pizza and some beers with friends, for someone might change
> their lives. Think about it.
>
>


-- 
Regards,
Sahil Sharma

$25: for you a pizza and some beers with friends, for someone might change
their lives. Think about it.


[ns] Problem in mark greig's wireless1.tcl

2013-04-13 Thread Sahil Sharma

Hi,

I am getting this problem when running wireless1.tcl in mark greig's
tutorials.

praving@ubuntu:~/Downloads$ ns wireless1.tcl
num_nodes is set 3
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
INITIALIZE THE LIST xListHead
Loading connection pattern…
couldn’t read file “../mobility/scene/cbr-3-test”: no such file or directory
while executing
“source.orig ../mobility/scene/cbr-3-test”
(“uplevel” body line 1)
invoked from within
“uplevel source.orig [list $fileName]”
invoked from within
“if [$instance_ is_http_url $fileName] {
set buffer [$instance_ read_url $fileName]
uplevel eval $buffer
} else {
uplevel source.orig [list $fileName]
…”
(procedure “source” line 8)
invoked from within
“source $val(cp)”
(file “wireless1.tcl” line 88)
praving@ubuntu:~/Downloads$ tcl/ex/wireless-mitf.tcl
bash: tcl/ex/wireless-mitf.tcl: No such file or directory


How can I remove this. Please help.
-- 
Regards,
Sahil Sharma

$25: for you a pizza and some beers with friends, for someone might change
their lives. Think about it.