[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ns] rookie's question
Dear kunchan,
Because I use the ns-2 under the win2000 environment, the nam does not work
under win2000,so I have to use ns-2 in command line mode. Can you tell how
to start the ns-2 at the beginning?
Thing's a little bit confusing on win2000, When I input the command "set ns
[new Simulator]" directly at the beginning of starting tcl, system returns
"invalid command name "new"". Then I tried to find the ns.exe on my disks,
but I can't find any. I download prebuilt 32bit ns.exe to ns folder, then
run ns.exe before inputting "set ns [new Simulator]", it seems work. but I
got this output:
% set ns [new Simulator]
invalid command name "new"
% ns.exe
% set ns [new Simulator]
_o4
% set nf [open out.nam w]
filebfeec8
% $ns namtrace-all $nf
filebfeec8
% proc finish {} {
global ns nf
$ns flush-trace
close $nf
exec nam out.nam &
exit 0
}
% $ns at 5.0 "finish"
1
% $ns run
% Cannot connect to existing nam instance. Starting a new one...
ns example1.tcl
couldn't read file "example1.tcl": no such file or directory
child process exited abnormally
%
what would be the problem?
Need help urgently,
Yours sincerely,
Yanxu Liu
OHIOU,Athens,OH
E-mail:[email protected]
>From: kunchanl <[email protected]>
>To: yanxu liu <[email protected]>
>CC: ns email list <[email protected]>
>Subject: Re: [ns] rookie's question
>Date: Sat, 4 Aug 2001 23:46:26 -0700 (PDT)
>
>Change
> set ns tst
>to
> set ns [new Simulator]
>
>But is there any particular reason you want to use
>commmand-line mode?
>
>
>Kun-chan Lan
>
>On Sat, 4 Aug 2001, yanxu liu wrote:
>
> > Dear All,
> > I have a question while start the simple sample of ns-2 on win2000,
> > I input :
> > % set ns tst
> > tst
> > % set nf [open out.nam w]
> > file1420d0
> > % $ns namtrace-all $nf
> > invalid command name "tst"
> >
> > I don't know what I should do to pass this error msg, can anyone give
>some
> > help?
> >
> >
> > Yanxu Liu
> > Athens, OH45701
> > E-mail: [email protected]
>
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp