Error When I Execute The Nam

Hello,
Please find attached the code.
The code is correct but when i execute the nam i have this error:


najat@najat-laptop:~/test$ Cannot connect to existing nam instance. Starting a new one...

nam: Unable to open the file "mih.nam.nam"

Can someone help me??
Thanks in advance.


Similar Content



Help With Lemonpos For SlackWare 14.1

I'm a newby Slackware(14.1) user, I downloaded and installed the SlackBuild for lemonpos, also installed mysql database Ok, but when I star squeeze or lemon it asking me the administrator or supervisor username and password,I try admin-linux and didn't work, also get those error's:

setup Logs.. done, QSqlError(-1, "Unable to find table logs", "")
Login()

Error** : QSqlError(1046, "QMYSQL: Unable to execute query", "No database selected"

No database selected QMYSQL: Unable to execute query"
**Error** : QSqlError(1046, "QMYSQL: Unable to execute query", "No database selected")
squeeze(2233) KPlotWidget::Private::calcDataRectLimits: y1 and y2 cannot be equal. Setting y2 = y1 + 1.0


Any helps, I'll apreciate. the domain lemonpos is not available.

Homepage: http://lemonpos.org/.

Error While Loading Shared Libraries: Libquadmath.so.0

Dear all;
I run an execute file named "A" gets it's input from a text file "B.inp"
but I face this error:
A < B.inp
: error while loading shared libraries: libquadmath.so.0: cannot open shared object file: No such file or directory

I've downloaded libquadmath and when I want to install it ,the other error said I don't have libgc package!!! but I have libgc!! is it because of existing two different repository that it can't share their information?
my operating system is Centos6;
what shall I do?
Thanks for your attention

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

Error:: "wrong # Args: Should Be "set VarName ?newValue?" " While Running TCL Script

I m learning Tcl and write short code. After running code i got same error repeatedly and not able to find mistake,,,i wrote it as it is from a tutorial. here is the code below

set ns [new Simulator]

set f1 [open out.nam w] #open nam file out.nam
$ns namtrace-all $f1

proc finish{} {
global ns f1
$ns flush-trace
#close $tracefile1
close $f1
exec nam out.nam &
exit 0
}


set n1 [$ns node] # 3 nodes defined
set n2 [$ns node]
set n3 [$ns node]

set duplex-link $n1 $n2 10mb 10ms Droptail
set duplex-link $n2 $n3 10mb 10ms DropTail
set duplex-link $n3 $n1 10mb 10ms DropTail

set udp1 [new Agent/UDP] #UDP agent attached to node n1
$ns attach-agent $n1 $udp1

set cbr1 [new Application/traffic/CBR]
$cbr1 set packetSize_ 500
$cbr1 set interval_ 0.005
$ns attach-agent cbr1 udp1

set null1 [new Aggent/Null]
$ns attach-agent $n2 $null1


$ns connect $udp1 $null1

$ns at 0.5 "$cbr0 start"
$ns at 4.5 "$cbr0 stop"


$ns at 12.0 "finish"

$ns run



ERROR:wrong # args: should be "set varName ?newValue?"
while executing
"set f1 [open out.nam w] #open nam file out.nam"
(file "11.tcl" line 19)

Pass Variable Value In Ssh Command

Hello all,
I am trying to execute Code:
ssh $a@$b mkdir abc

in a shell script where, a and b are variables
a=username and b=server.ip
It is giving me an error Quote:
ssh connect to host port 22 connection refused
why am I getting the error?? ssh does not accept variables? Can anyone help.
Thanks in Advance

Use Xgraph With Awk

Hi sir

I try to get a graph by using xgraph at ns2 , i want to show the loss paquet rate in graph .

i use a file awk to get it but when i try to execute "awk -f lpr.awk out.tr " an error message showen " syntax error " .

I want to know how can i get a graph using xgraph and awk code ?

CentOS 7 - Not Able To Open Vmplayer

I have CentOS 7 64 bit. I have installed open-vm-tools on it.
I have installed vmplayer using
Code:
./VMware-Player-6.0.1-1379776.x86_64.bundle

Now when I try to open vmplayer on it, it does not load 'Virtual Network Device'
and shows error in terminal
Code:
Failed to build vmnet.  Failed to execute the build command.

When I check status of vmware, it shows
Code:
Module vmnet not loaded

If I try to run
Code:
vmware-modconfig --console --install-all

It gives me following error.
Code:
make: Leaving directory `/tmp/modconfig-2NfFeS/vmnet-only'
Unable to install all modules.

I am not able to open VMplayer, please help me to open it.

Thanks

--Kind Regards
Sam

Error In Umts Verical Handover Wih Wlan

Hey,
please find attached the code
I got this error :
can't read "mac_(0)": no such variable
while executing
"subst $[subst $var]"
(procedure "_o112" line 5)
(SplitObject set line 5)
invoked from within
"$iface2 set mac_(0)"
invoked from within
"set tmp2 [$iface2 set mac_(0)] "
(file "umts.tcl" line 319)




can anyone help to solve the error??

Python FTP Send Command

hello Experts!
need some help here with python FTP. so what i'm trying to do is, from a linux machine, ill be sending over a python script to a windows machine via python ftp. that works fine with no problem. now, i want to execute that python script i sent remotely. im having trouble with that. here's my code to just execute the script:

p.s : please dont suggest other options such as python paramiko due to many network security reasons

Code:
ftp = ftplib.FTP("windows machine name")
ftp.login("username", "password")
ftp.cwd("where\\python\\script\\is kept\\")

ftp.sendcmd("python myscript.py")

but looks like it doesn't recognize that command. how do i accomplish this please?

Segmentation Fault (core Dumped ) Error In Ns2.34

I did some changes in the LAR protocol and suppose the new protocol is named as ABC .
When i am doing make clean and then make.
object file "ABC.o" was successfully created.
Then i tried to run tcl file , nothing has been written in the trace file and it gave me the following error

21052015$ ns234 new.tcl scen1 setting other default settings...
removing unecessary packet headers...
num_nodes is set 100
INITIALIZE THE LIST xListHead
loading mobility file
loading traffic file
Starting Simulation...
Segmentation fault (core dumped)

I tried a lot but unable to find out where is the error. I am unable to find out the point of error . Is it in .cc file or in .tcl file.
Could someone please help me.
My work is stucked and i searched a lot but didn't get anything.

please please .............. help me