LinuxQuestions.org
Help answer threads with 0 replies.
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 03-11-2015, 11:43 PM   #901
Aska123
Member
 
Registered: Apr 2013
Posts: 197

Rep: Reputation: Disabled

$sudo chmod 777 -R ns-allinone-2.34

use this command on $ns-allinone-2.34 to run ./test command
 
Old 03-12-2015, 01:24 AM   #902
emprit
Member
 
Registered: Feb 2015
Location: jl. bogor 1 no 91, malang, jawa timur, indonesia
Distribution: any linux
Posts: 81

Rep: Reputation: Disabled
Quote:
Originally Posted by tuongpx View Post
Hi Rizwanamalek,

I had try with "ns wireless-demo-csci694.tcl" and the result similar to your result. But when I try with the bellow command, it show "Permission denied". Can you help me !
set permision like aska said http://www.linuxquestions.org/questi...ml#post5330744

Last edited by emprit; 03-12-2015 at 01:37 AM.
 
Old 03-12-2015, 05:09 AM   #903
tuongpx
LQ Newbie
 
Registered: Feb 2015
Posts: 8

Rep: Reputation: Disabled
Hi emprit,

I could not open that link. Please help me. Thanks.
Quote:
Originally Posted by emprit View Post
 
Old 03-12-2015, 06:55 AM   #904
emprit
Member
 
Registered: Feb 2015
Location: jl. bogor 1 no 91, malang, jawa timur, indonesia
Distribution: any linux
Posts: 81

Rep: Reputation: Disabled
Quote:
Originally Posted by tuongpx View Post
Hi emprit,

I could not open that link. Please help me. Thanks.
that was post before me hahahah

this aska123 said

$sudo chmod 777 -R ns-allinone-2.34

use this command on $ns-allinone-2.34 to run ./test command
 
Old 03-12-2015, 07:04 AM   #905
Aska123
Member
 
Registered: Apr 2013
Posts: 197

Rep: Reputation: Disabled
Quote:
Originally Posted by tuongpx View Post
Hi Rizwanamalek,

I had try with "ns wireless-demo-csci694.tcl" and the result similar to your result. But when I try with the bellow command, it show "Permission denied"
$sudo chmod 777 -R ns-allinone-2.34

use this command on $ns-allinone-2.34 to run ./test command
 
Old 03-12-2015, 09:03 AM   #906
flowing_river
LQ Newbie
 
Registered: Feb 2015
Posts: 16

Rep: Reputation: Disabled
Hi,
after running ./test
I found full of error leach.err file and empty leach.out
how to solve this??
Help me

couldn't read file "../../rca/ns-ranode.tcl": no such file or directory
while executing
"source.orig ../../rca/ns-ranode.tcl"
("uplevel" body line 1)
invoked from within
"uplevel source.orig[list $fileName]"
invoked from within
"if [$instance_ is_http_url $fileName] {
set buffer [$instance_ read_url $fileName]
uplevel eval $buffer
} else {
uplevel source.orig[list $fileName]
..."
(procedure "source" line 8)
invoked from within
"source ../../rca/ns-ranode.tcl"
(file "mit/uAMPS/sims/uamps.tcl" line 14)
invoked from within
"source.orig mit/uAMPS/sims/uamps.tcl"
("uplevel" body line 1)
invoked from within
"uplevel source.orig[list $fileName]"
invoked from within
"if [$instance_ is_http_url $fileName] {
set buffer [$instance_ read_url $fileName]
uplevel eval $buffer
} else {
uplevel source.orig[list $fileName]
..."
(procedure "source" line 8)
invoked from within
"source mit/uAMPS/sims/uamps.tcl"
(file "tcl/mobility/leach.tcl" line 18)
invoked from within
"source.orig tcl/mobility/leach.tcl"
("uplevel" body line 1)
invoked from within
"uplevel source.orig[list $fileName]"
invoked from within
"if [$instance_ is_http_url $fileName] {
set buffer [$instance_ read_url $fileName]
uplevel eval $buffer
} else {
uplevel source.orig[list $fileName]
..."
(procedure "source" line 8)
invoked from within
"source tcl/mobility/$opt(rp).tcl"
(file "tcl/ex/wireless.tcl" line 187)
 
Old 03-12-2015, 12:16 PM   #907
emprit
Member
 
Registered: Feb 2015
Location: jl. bogor 1 no 91, malang, jawa timur, indonesia
Distribution: any linux
Posts: 81

Rep: Reputation: Disabled
Quote:
Originally Posted by flowing_river View Post
Hi,
after running ./test
I found full of error leach.err file and empty leach.out
how to solve this??
Help me
edit all ur source on uamps.tcl with file on current location.
 
Old 03-12-2015, 12:37 PM   #908
flowing_river
LQ Newbie
 
Registered: Feb 2015
Posts: 16

Rep: Reputation: Disabled
@emprit
in reference to #907
file in current location means which file?? leach_test?? or mit/leach_sims/test_simulations/leach.. ??
 
Old 03-12-2015, 01:11 PM   #909
flowing_river
LQ Newbie
 
Registered: Feb 2015
Posts: 16

Rep: Reputation: Disabled
ok..i have changed my uapmps.tcl like this..
Quote:
global opt bs

#source $env(RCA_LIBRARY)/ns-ranode.tcl
#source $env(uAMPS_LIBRARY)/ns-bsapp.tcl
#source $env(uAMPS_LIBRARY)/extras.tcl
#source $env(uAMPS_LIBRARY)/stats.tcl

source /home/panam/ns-allinone-2.34/ns-2.34/mit/rca/ns-ranode.tcl
source /home/panam/ns-allinone-2.34/ns-2.34/mit/uAMPS/ns-bsapp.tcl
source /home/panam/ns-allinone-2.34/ns-2.34/mit/uAMPS/extras.tcl
source /home/panam/ns-allinone-2.34/ns-2.34/mit/uAMPS/stats.tcl

#Uncomment these lines to use gdb to debug the c code
#source mit/uAMPS/ns-bsapp.tcl
#source mit/uAMPS/extras.tcl
#source mit/uAMPS/stats.tcl
source /home/panam/ns-allinone-2.34/ns-2.34/mit/rca/resources/ns-resource-manager.tcl
source /home/panam/ns-allinone-2.34/ns-2.34/mit/rca/resources/ns-energy-resource.tcl
source /home/panam/ns-allinone-2.34/ns-2.34/mit/rca/resources/ns-neighbor-resource.tcl
but then it's getting following error..

Quote:
invalid command name "Resource/Energy"
while executing
"Resource/Energy instproc setParams {args} {
$self instvar energyLevel_ alarmLevel_
set energyLevel_ [lindex $args 0]
set alarmLevel_ [lind..."
(file "/home/panam/ns-allinone-2.34/ns-2.34/mit/rca/resources/ns-energy-resource.tcl" line 11)
invoked from within
"source.orig /home/panam/ns-allinone-2.34/ns-2.34/mit/rca/resources/ns-energy-resource.tcl"
("uplevel" body line 1)
invoked from within
"uplevel source.orig[list $fileName]"
invoked from within
"if [$instance_ is_http_url $fileName] {
set buffer [$instance_ read_url $fileName]
uplevel eval $buffer
} else {
uplevel source.orig[list $fileName]
..."
(procedure "source" line 8)
invoked from within
"source /home/panam/ns-allinone-2.34/ns-2.34/mit/rca/resources/ns-energy-resource.tcl"
(file "mit/uAMPS/sims/uamps.tcl" line 24)
invoked from within
"source.orig mit/uAMPS/sims/uamps.tcl"
("uplevel" body line 1)
invoked from within
"uplevel source.orig[list $fileName]"
invoked from within
"if [$instance_ is_http_url $fileName] {
set buffer [$instance_ read_url $fileName]
uplevel eval $buffer
} else {
uplevel source.orig[list $fileName]
..."
(procedure "source" line 8)
invoked from within
"source mit/uAMPS/sims/uamps.tcl"
(file "tcl/mobility/leach.tcl" line 18)
invoked from within
"source.orig tcl/mobility/leach.tcl"
("uplevel" body line 1)
invoked from within
"uplevel source.orig[list $fileName]"
invoked from within
"if [$instance_ is_http_url $fileName] {
set buffer [$instance_ read_url $fileName]
uplevel eval $buffer
} else {
uplevel source.orig[list $fileName]
..."
(procedure "source" line 8)
invoked from within
"source tcl/mobility/$opt(rp).tcl"
(file "tcl/ex/wireless.tcl" line 187)
so are the changes are correct??
now what should I do??

Last edited by flowing_river; 03-12-2015 at 01:12 PM.
 
Old 03-12-2015, 01:21 PM   #910
flowing_river
LQ Newbie
 
Registered: Feb 2015
Posts: 16

Rep: Reputation: Disabled
and yes, my ,/test gives this output
panam@ubuntu:~/ns-allinone-2.34/ns-2.34$ ./test
num_nodes is set 3
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
INITIALIZE THE LIST xListHead
Loading connection pattern...
Loading scenario file...
Starting Simulation...
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 550.0
SORTING LISTS ...DONE!
NS EXITING...


here,distCST_ is different from all of other ./test results..
so,is that a problem??
 
Old 03-12-2015, 01:31 PM   #911
flowing_river
LQ Newbie
 
Registered: Feb 2015
Posts: 16

Rep: Reputation: Disabled
deleted..

Last edited by flowing_river; 03-12-2015 at 01:36 PM. Reason: posted twice due to network problem
 
Old 03-12-2015, 11:44 PM   #912
tuongpx
LQ Newbie
 
Registered: Feb 2015
Posts: 8

Rep: Reputation: Disabled
Quote:
Originally Posted by emprit View Post
that was post before me hahahah

this aska123 said

$sudo chmod 777 -R ns-allinone-2.34

use this command on $ns-allinone-2.34 to run ./test command
Hi emprit,
I had run that command "$sudo chmod 777 -R ns-allinone-2.34" and run ./test command, the result is ok
Quote:
tuongpx@ubuntu:~/ns-allinone-2.34/ns-2.34$ ./test
num_nodes is set 3
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
INITIALIZE THE LIST xListHead
Loading connection pattern...
Loading scenario file...
Starting Simulation...
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 89.8
SORTING LISTS ...DONE!
NS EXITING...
But when I run this command, it still has the error.
Quote:
tuongpx@ubuntu:~/ns-allinone-2.34/ns-2.34$ ns tcl/ex/wireless.tcl \
> -sc mit/uAMPS/sims/nodescen.tcl \
> -rp $alg \
> -x 100\
> -y 100 \
> -nn 101 \
> -stop $stop \
> -eq_energy 0 \
> -init_energy 2 \
> -filename $filename \
> -dirname $dirname \
> -topo topology_file \
> -num_cluster 5 \
> -bs_x 0 \
> -bs_y 0 \
> -bs_y 0 2>$dirname/$filename.err 1>$dirname/$filename.out &
[1] 2488
tuongpx@ubuntu:~/ns-allinone-2.34/ns-2.34$ bash: /.err: Permission denied

[1]+ Exit 1
Where is the "$dirname", "$filename" and "topolofy_file" ? I have to create that file and directory, right ? And how can I show the nam file ?
Please help me.
Thanks so much.

Last edited by tuongpx; 03-13-2015 at 10:20 AM.
 
Old 03-15-2015, 04:04 AM   #913
emprit
Member
 
Registered: Feb 2015
Location: jl. bogor 1 no 91, malang, jawa timur, indonesia
Distribution: any linux
Posts: 81

Rep: Reputation: Disabled
Quote:
Originally Posted by tuongpx View Post
Hi emprit,
I had run that command "$sudo chmod 777 -R ns-allinone-2.34" and run ./test command, the result is ok


But when I run this command, it still has the error.


Where is the "$dirname", "$filename" and "topolofy_file" ? I have to create that file and directory, right ? And how can I show the nam file ?
Please help me.
Thanks so much.
u cant run wireless.tcl alone, see script on test
because variable about rp, topologi and other in script leach_test
Code:
#!/bin/bash
cd /home/student/ns-allinone-2.34/ns-2.34/tcl/ex/
ns wireless-demo-csci694.tcl
sleep 2

cd /home/student/ns-allinone-2.34/ns-2.34/
./leach_test
so just run ./test this will automaticaly start leach_test, and in leach_test will run wireless.tcl
after that u can see output file on MIT/leach_sim/
and nam is not supported with leach algoritm in MIT source

Last edited by emprit; 03-15-2015 at 04:07 AM.
 
Old 03-15-2015, 04:14 AM   #914
tuongpx
LQ Newbie
 
Registered: Feb 2015
Posts: 8

Rep: Reputation: Disabled
Quote:
Originally Posted by emprit View Post
u cant run wireless.tcl alone, see script on test
because variable about rp, topologi and other in script leach_test
Code:
#!/bin/bash
cd /home/student/ns-allinone-2.34/ns-2.34/tcl/ex/
ns wireless-demo-csci694.tcl
sleep 2

cd /home/student/ns-allinone-2.34/ns-2.34/
./leach_test
so just run ./test this will automaticaly start leach_test, and in leach_test will run wireless.tcl
after that u can see output file on MIT/leach_sim/
and nam is not supported with leach algoritm in MIT source
Hi emprit,

Because I'm being implement leach on ns2, I need to show nam topology to present my project.
What's source can supported with leach algoritm on NS2 ?
Thanks

Last edited by tuongpx; 03-15-2015 at 05:14 AM.
 
Old 03-15-2015, 04:57 AM   #915
emprit
Member
 
Registered: Feb 2015
Location: jl. bogor 1 no 91, malang, jawa timur, indonesia
Distribution: any linux
Posts: 81

Rep: Reputation: Disabled
Quote:
Originally Posted by tuongpx View Post
Hi emprit,

Because I'm being implement leach on ns2, I need to show nam topology to present my project.
What's source can supported with leach algoritm on NS2.
Thanks
u can use GNUPLOT for draw topologi, but GNUPLOT not like nam.
no animation in GNUPLOT, but it can drawing the topologi.
for other source, maybe leach manasim source for ns2, search on this forum
 
  


Reply

Tags
leach, leach-warning50, ns2, ns2 ns234, pegasis


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
ns:"error when calling class OldSim"&tclsh:"invalid command+child process exits abn." shojaru Linux - Newbie 0 03-05-2009 04:23 AM
labview stopped at "init tmp resource files" on FC4 baosheng Linux - Software 2 09-28-2007 11:02 AM
ORiNOCO WLAN card not working - "failed to allocate resource" hauneboo Linux - Laptop and Netbook 1 11-29-2005 09:08 AM
What "kernel opts" allow PC to power down with "turning energy off"? kornerr Linux - General 1 03-10-2005 12:07 PM
nvidia insmod: "Device or resource busy" w/GeForce 4 MX KeithSpook Linux - Hardware 4 03-03-2004 12:21 PM

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

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