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 02-23-2007, 02:00 AM   #1
newbie06
LQ Newbie
 
Registered: Dec 2006
Posts: 8

Rep: Reputation: 0
syntax error in string trim and wrong node routing agent in tcl script


Hi everybody

Linux and tcl are my new platform of operating system. So I am still in the process of learning and adapting. I am using network simulator 2 as my simulator and now I am having problem with my tcl script in which during the simulation process, I got not the output, but the following message:

Num_node is set to 4
Wrong node routing agent!

oo..I forgot to mention that before this happened, I have been warned about the syntax error message in the following sentence:

Code:
set l2lat [lindex $argv 5]
set addrlatency [lindex $argv 6]
set l2latency [expr [string trim $l2lat "ms"] + [string trim $addrlatency "ms"] ]ms

I have checked my script and I think everything is just working fine. But it is not!. Please someone help me..I really need to solve these out. I just want to know what has cause those two errors (syntax and routing agent) error message to occur and what will be the possible solution to solve the problem.

Thanks in advance for your help.
 
  


Reply


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
need snmp syntax to change a community string RedhatES4_user Linux - Software 1 02-12-2007 06:47 AM
Error: Agent Configuration Agent (use Oracle with Linux) shipon_97 Linux - Enterprise 0 02-02-2007 12:11 AM
Shell Script Strings - trim revof11 Programming 3 11-30-2006 09:46 AM
shell script help required syntax error sridhar11 Programming 1 10-31-2005 08:38 AM
How to start a Tcl/Tk script by simply invoking the script file itself ? cyu021 Programming 2 10-10-2004 11:00 AM


All times are GMT -5. The time now is 09:03 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration