LinuxQuestions.org
Help answer threads with 0 replies.
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 05-16-2015, 01:50 AM   #1
najat
Member
 
Registered: Apr 2015
Posts: 58
Blog Entries: 1

Rep: Reputation: Disabled
Urgently plz reply error in the code


Helllo,
I defined the variable like this : set interval [lindex $argv 1].
When i execute my code, i got this error :



can't read "interval": no such variable
while executing
"$cbr_ set interval_ $interval"
(file "te.tcl" line 597)



How can i read this variable



Plz replyyy
 
Old 05-16-2015, 03:09 AM   #2
najat
Member
 
Registered: Apr 2015
Posts: 58
Blog Entries: 1

Original Poster
Rep: Reputation: Disabled
plz can anybody help me
 
Old 05-16-2015, 03:11 AM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,986

Rep: Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447
after 15 posts you should know to
USE THE CODE TAGS
PHP Code:
 [codeplace the code inside the tags [/code
and " PLEASE " is not spelled as "plz"!!!
please DO NOT use "text speek !!!
this is not a sms and this is NOT a telephone !!!!

if you are not going to show us the code
or even what it is
how can we help
as to what you posted

Code:
while executing
"$cbr_ set interval_ $interval"
(file "te.tcl" line 597)
did you read the code?
and did you look at line 597 ?
 
Old 05-16-2015, 03:49 AM   #4
najat
Member
 
Registered: Apr 2015
Posts: 58
Blog Entries: 1

Original Poster
Rep: Reputation: Disabled
Please find attach the code
This is the original code i try to fix the errors but i couldn't resolve
Attached Files
File Type: txt te.tcl.txt (23.2 KB, 17 views)
 
Old 05-16-2015, 07:53 AM   #5
najat
Member
 
Registered: Apr 2015
Posts: 58
Blog Entries: 1

Original Poster
Rep: Reputation: Disabled
Can anyone help
 
Old 05-16-2015, 07:59 AM   #6
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: Oregon, USA
Distribution: Lubuntu 14.04, Windows Vista
Posts: 5,694
Blog Entries: 3

Rep: Reputation: 769Reputation: 769Reputation: 769Reputation: 769Reputation: 769Reputation: 769Reputation: 769
Quote:
Originally Posted by najat View Post
Can anyone help
Hi...

Try to be patient, this forum is volunteer based and is composed of folks with different skill sets who are on at different times.

Regards...
 
Old 05-16-2015, 08:19 AM   #7
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,687
Blog Entries: 23

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
may I pop in a remark? So, OP, are you a software developer? I am. I consult books and the internet (well, the internet mostly)...
I hate to RTFM you, believe me, but...we are NOT, repeat NOT here to further your career...
If you, as a developer/programmer are professionally stuck with some code...take the professional attitude to resolve it...
Dont take this the wrong way, but...I worked as a developer for years (now I load trucks for a living) and I had nobody to ask help to...
As mentioned...quit whining and be a professional...and at least show some understanding to the good folks here...
Thor
(sorry for the hastily typed typos)

Last edited by ButterflyMelissa; 05-16-2015 at 09:07 AM. Reason: correcting some hastily typed typos :)
 
3 members found this post helpful.
Old 05-16-2015, 09:15 AM   #8
jkirchner
Member
 
Registered: Apr 2007
Location: West Virginia
Posts: 764

Rep: Reputation: 195Reputation: 195
Quote:
Originally Posted by najat View Post
Please find attach the code
This is the original code i try to fix the errors but i couldn't resolve
This looks like network simulator stuff. Is this for a school project?
 
Old 05-16-2015, 11:41 AM   #9
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,687
Blog Entries: 23

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
(ow boy, now we're helping him get his grades)
 
Old 05-16-2015, 12:04 PM   #10
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 2,307

Rep: Reputation: 566Reputation: 566Reputation: 566Reputation: 566Reputation: 566Reputation: 566
If you look at the posted script the top bit contains this:
Code:
# Test for MutiFaceNodes using Triggers.
# Scenario: Create a multi-interface node using different technologies
#           There is a TCP connection between the router0 and MultiFaceNode.
#           We first use the UMTS interface, then we switch the traffic 
#           to the 802.11 interface when it becomes available. 
#           When the node leaves the coverage area of 802.11, it creates a link going down 
#           event to redirect to UMTS.
#
# Topology scenario:
#
#                                   bstation802(3.0.0)->)
#                                   /
#                                  /      
# router0(1.0.0)---router1(2.0.0)-----------bstation80216(4.0.0)          +------------------------------------+
#                                  \        		                  + iface1:802.11(3.0.1)|              |
#                                   \                                     +---------------------+ MutiFaceNode |
#                                   rnc(0.0.0)                            + iface0:UMTS(0.0.2)  |  (5.0.0)     |
#                                      |                                  +---------------------+              |
#                                 bstationUMTS(0.0.1)->)        	  + iface2:80216(4.0.0) |              |	
#									  +---------------------|	       |
#									  + iface:LTE(0.0.3)	|	       |	
#                  							  +---------------------+--------------+
so yes this is not only homework but OP is too stupid ( or thinks we are ) to remove the question!

Last edited by Keith Hedger; 05-16-2015 at 05:36 PM. Reason: typos
 
Old 05-16-2015, 12:19 PM   #11
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,687
Blog Entries: 23

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
Quote:
so /yes this is not only homework but OP is to stupid ( or thinks we are ) to remove the question!
..to be frowned upon...as per LQ rules...

Quote:
Do not post homework assignments verbatim. We're happy to assist if you have specific questions or have hit a stumbling point, however. Let us know what you've already tried and what references you have used (including class notes, books, and searches) and we'll do our best to help. Keep in mind that your instructor might also be an LQ member.
@OP - please, read the rules, obey them, dont press and...hey...wise up, please...

Thor
 
Old 05-16-2015, 08:51 PM   #12
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156
All essential information is missing in post #1.

1) It's about an ns2 simulation.
2) We cannot guess the changes you made to the [unknown ns2 version].
I.e. no ns2 can do any of LTE, UMTS, Mac802.16 by default.

"te.tcl" : Looks like the file umts-80211-80216.tcl from NS-MIH-MULTI-CRITERIA.tar.bz2 .
"umts-80211-80216.tcl" can be run with the shell scripts ABCpref.sh or distance.sh .


-
 
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
challenge for c programmers:code urgently required ehtisham Programming 7 11-22-2010 02:47 AM
plz reply....urgnt sanjaykhuntia Linux - Enterprise 2 10-25-2007 04:15 AM
Failed to start xserver in suse 10.1 PLZ HELP URGENTLY fireblade_spark Linux - Newbie 7 10-09-2007 05:34 AM
squid error ....... plz help..urgently required shahg_shahg Linux - Wireless Networking 2 11-01-2005 04:07 AM
DNS not responding plz reply nitin34847 Linux - Networking 3 05-23-2004 03:36 PM


All times are GMT -5. The time now is 09:12 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