LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-15-2014, 06:28 PM   #1
bayefalle
LQ Newbie
 
Registered: Aug 2014
Posts: 10

Rep: Reputation: Disabled
problem of declaration a nex variabl on stats.tcl in ns2


hello evrybody,

i want a help, when i add this declarartion (set filename [open "fichier.txt"])in the file stats.tcl on ns2, i obtain a empty file in leach.out when i run ./leach_test

please help me to resolv my problem.
 
Old 12-15-2014, 08:51 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
I think the right way would be like :
source "./fichier.txt"

* See e.g. uAMPS/sims/uamps.tcl
 
Old 12-16-2014, 04:41 AM   #3
bayefalle
LQ Newbie
 
Registered: Aug 2014
Posts: 10

Original Poster
Rep: Reputation: Disabled
problem of declaration a nex variabl on stats.tcl in ns2

Thaks to reply me,
always i obtain a problem to run leach_test.
I attahe the file stats.tcl and the file leach.out after runing ./leach_test
Thank to help me
Attached Files
File Type: txt stats.txt (3.9 KB, 15 views)
File Type: txt leach.txt (45 Bytes, 16 views)
 
  


Reply

Tags
leach, 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
[SOLVED] The problem of running the tcl script file in the NS2.31+crcn environment syxcod Linux - Software 16 11-24-2015 04:12 PM
Problem while executing gpsr.tcl in ns2.34 Sunil Malik Linux - Newbie 0 07-11-2014 08:49 PM
error: ISO C++ forbids declaration...for ns2.35 goodGOD Programming 8 06-11-2013 12:30 PM
vlan.tcl in ns2 aditi.sen Linux - Networking 1 03-21-2013 03:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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