More and more about NS-2

Compile cc file to exe file

in ns-allinone-2.34/ns-2.34/indep-utils/propagation/

g++ -lm -o threshold threshold.cc

threshold of Cthresh and Rthresh can be calculated.

Read More......

Another app is currently holding the yum lock; waiting for it to exit…

Another app is currently holding the yum lock; waiting for it to exit…

error though I was not using yum any where else, but this crap was coming every time when I run the command, After googling a bit finally got the solution that I this error was coming coz there was something in the yum.pid.
We can this issue by two means
First
one killing the pid by doing follwing command.

# ps aux | grep yum

this command will show all the process with process id which is running by yum. so now you can kill the process. Say process Id 31542 is using the yum so you can do

# kill -9 31542
or
# kill 31542

Second:

If above method doesn’t work for you. you can remove the yum process from the machine. Now the question arise where you will get the process file. yum process resides in /var/run folder so simply type the following command and hit enter.
# rm -f /var/run/yum.pid


Read More......

Some useful stuff about ns-2

http://jsun74.blogspot.com/2010/10/fwd-ns2.html

Read More......