LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-23-2014, 01:50 PM   #1
Zahraa Ayad
LQ Newbie
 
Registered: Dec 2014
Posts: 19

Rep: Reputation: Disabled
Smile error while executing a tcl file in ns2


Hi ...
i got this error while executing my tcl file

wrong # args: should be "_o3 self class proc node agent"
(Simulator attach-agent line 1)
invoked from within
"$ns attach-agent $node_(1) $tcp"
(file "third.tcl" line 96)

Can anyone help me to fix it?
Attached Files
File Type: txt third.tcl.txt (3.4 KB, 79 views)

Last edited by Zahraa Ayad; 12-24-2014 at 06:27 AM.
 
Old 12-24-2014, 05:41 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
A simulation file.tcl can be run with the interpreter = 'ns'.

Your error(s) :
You may get an answer, if you attach the file.
I.e. there is no solution for "generic errors"/unknown file.

Please attach third.tcl as third.tcl.txt
Attachments : The paper clip tool in the 'Advanced Editor'.


-

Last edited by knudfl; 12-24-2014 at 05:43 AM.
 
Old 12-24-2014, 09:50 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Code:
    96	$ns attach-agent $node_(1) $tcp   # source
    97	$ns attach-agent $node_(0) $sink  # destination
    98	$ns connect $tcp $sink
Please edit to :
Code:
$ns attach-agent $node_(1) $tcp   ;# source
$ns attach-agent $node_(0) $sink  ;# destination
I.e. the line must end with a semicolon ( ; ) if you want to add a #comment.

-
 
1 members found this post helpful.
Old 12-24-2014, 10:20 AM   #4
Zahraa Ayad
LQ Newbie
 
Registered: Dec 2014
Posts: 19

Original Poster
Rep: Reputation: Disabled
Smile

Thank u so much ...
 
  


Reply

Tags
error message, tcl-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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
can anyone help me in fixing the error while executing ospf10.tcl in 20-ospf4ns file badisachandu Linux - Newbie 2 04-05-2014 06:35 PM
Floating point exception error while executing tcl with ns2 ines8989 Linux - Software 2 04-22-2013 05:31 PM
Floating point exception error while executing tcl with ns2 ines8989 Linux - Software 0 04-09-2013 01:44 PM
invalid command type "llType" error occuring when executing a tcl script in ns2.34 madhu.bm Linux - Software 1 05-04-2012 05:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:15 PM.

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
Open Source Consulting | Domain Registration