Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 01-11-2010, 02:15 AM   #1
LQ Newbie
Registered: Jan 2010
Posts: 13
Blog Entries: 1

Rep: Reputation: 0
connection between otcl and c++ error

have downloaded and ex-linkage.tcl codes from the link

i followed the steps involved as follows:

add the object file in makefile then
#ns ex-linkage.tcl

these steps i followed but got the error message

[root@it-sdl019 ns-2.34]# ns ex-linkage.tcl
invalid command name "Agent/MyAgentOtcl"
while executing
"Agent/MyAgentOtcl create _o3 "
invoked from within
"catch "$className create $o $args" msg"
invoked from within
"if [catch "$className create $o $args" msg] {
if [string match "__FAILED_SHADOW_OBJECT_" $msg] {
delete $o
return ""
global errorInfo
error "class $..."
(procedure "new" line 3)
invoked from within
"new Agent/MyAgentOtcl"
invoked from within
"set myagent [new Agent/MyAgentOtcl]"
(file "ex-linkage.tcl" line 5)

thanks in advance friend

Last edited by sandhya_it17m; 01-11-2010 at 02:26 AM. Reason: thanking
Old 01-11-2010, 02:50 AM   #2
LQ Newbie
Registered: Jan 2010
Posts: 13
Blog Entries: 1

Original Poster
Rep: Reputation: 0
really thanks for replying
Old 01-11-2010, 02:58 AM   #3
LQ Newbie
Registered: May 2009
Location: Bangalore, India
Distribution: Kubuntu 2.6.31-14
Posts: 19

Rep: Reputation: 2
Originally Posted by sandhya_it17m View Post
invalid command name "Agent/MyAgentOtcl"
In your script, you need to give the full path of MyAgent0tcl.

Otherwise, if you are running it from the same directory containing Agent then give "./" before the command name, namely


other probable solution would be to check and fix the PATH environment variable before executing the script to include the Agent's path.
0 members found this post helpful.
Old 02-23-2011, 11:24 PM   #4
Registered: Feb 2011
Posts: 47

Rep: Reputation: 1
did u manage to solve the problem? i cant
Old 04-10-2014, 03:41 AM   #5
Eric Lucien
LQ Newbie
Registered: Apr 2014
Posts: 2

Rep: Reputation: Disabled
you should run the command
#make install

after you run command #make in the ns2-*** dir.

And then you will run the script correctly.


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
need to connect otcl and c++ sandhya_it17m Linux - Networking 1 01-10-2010 01:39 PM
Sendmail: eocket wedge , 504 error , dsn error, mail relay connection error djcs Debian 0 03-03-2009 12:41 AM
LDAP SERVER Client Connection on SUSE 9.2 - connection error jcarton Linux - Networking 3 03-19-2005 12:40 PM
LDAP SERVER - CLIENT CONNECTION on suse 9.2 - connection error nicolasdiogo Linux - Networking 4 03-01-2005 01:43 PM
LDAP SERVER - CLIENT CONNECTION on suse 9.2 - connection error nicolasdiogo SUSE / openSUSE 0 03-01-2005 05:43 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:31 AM.

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