LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-04-2014, 03:00 AM   #1
srikanthchikka
LQ Newbie
 
Registered: Jul 2014
Posts: 16

Rep: Reputation: Disabled
Error in NS2.35 when creating node


tried to write my first code in tcl on ns-2 using cygwin, when I type
set n0 [$ns node]
it says
class Node:constructor failed : invalid command name "_o4 _o11"
 
Old 07-05-2014, 03:05 PM   #2
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware
Posts: 6,403
Blog Entries: 6

Rep: Reputation: Disabled
I don't have much experience with ns2; sorry (I'm still learning about ns2) but this guide might help.

http://www.isi.edu/nsnam/ns/

Just wondering-
Is this for TCP, routing or multicast protocols?
 
Old 07-05-2014, 03:19 PM   #3
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware
Posts: 6,403
Blog Entries: 6

Rep: Reputation: Disabled
This might help with a tcl script-

http://www.linuxquestions.org/questions/linux-newbie-8/cannot-create-nodes-in-ns-allinone-2-30-using-the-%27set-n0-%5B$ns-node%5D%27-command-729204/

Maybe the node is not defined? (not sure)

Gave it my best shot.

Last edited by Ztcoracat; 07-05-2014 at 03:24 PM. Reason: Copy and fix link
 
1 members found this post helpful.
Old 07-07-2014, 12:14 AM   #4
srikanthchikka
LQ Newbie
 
Registered: Jul 2014
Posts: 16

Original Poster
Rep: Reputation: Disabled
Smile Thank you :)

i am working in Windows environment using cygwin. How to save the tcl sciprt written with the above said name..??? Can you give me steps how to completely execute a program?
 
Old 07-07-2014, 10:52 PM   #5
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware
Posts: 6,403
Blog Entries: 6

Rep: Reputation: Disabled
It's best for you to wait for an experienced member that is a Windows Administrator.

In the meantime this should help it's for for Windows.
http://www.fundza.com/tcl/script_she...mand_line.html

http://www.bin-co.com/tcl/tutorial/intro.php
http://windowsitpro.com/scripting/ho...t-command-line

Cygwin and Windows 7 (wasn't sure which version of Windows your running)
http://lifehacker.com/5433452/cygwin...y-improvements
 
1 members found this post helpful.
  


Reply

Tags
ns2


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change the algorithm of a node in ns2 Swathinag Linux - Software 11 10-04-2016 06:21 AM
getting error in .tcl while creating malicious node in aodv in ns2.35 saa-6611 Linux - Software 12 05-22-2014 07:00 AM
Error when use command setdest to make node movement in ns2 kien2106 Linux - Networking 2 05-18-2014 11:21 PM
Error on Tcl when add misbehavior node in aodv ns2 D4SH_SI4 Linux - Networking 5 06-28-2013 01:57 AM
[SOLVED] random deployment of node in NS2 r0w225 Linux - Newbie 2 09-28-2012 07:13 AM


All times are GMT -5. The time now is 06:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration