Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,512
Rep:
Please do not start a new thread every time you have an
ns-2.29 / Cygwin question : Use one of your other ns229/Cygwin threads.
Quote:
-bash: $'\r': command not found
Which command are you doing ? Which script ?
'\r' is an escape from a script created in windows.
A Windows text can be converted to Unix style with the tool dos2unix http://www.techanswerguy.com/2008/02...-dos2unix.html
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,512
Rep:
# 3 .
There may be a solution here : http://stackoverflow.com/questions/1...c-bash-profile
"f you are using a recent Cygwin (e.g. 1.7), you can also start both your .bashrc
and .bash_profile with the following line, on the first non commented line :
Code:
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
(set -o igncr) 2>/dev/null && set -o igncr; # this comment is needed
"This will force bash to ignore carriage return (\r) characters
used in Windows line separators."
! Found with Google .. bash: $'\r': command not found ..
I.e. you can type anything into Google, and often get a solution in less than a minute.
I want to implement SPIN protocol for Wireless sensor networks on ns2.29 under Cygwin.
I need guidance on how to go about it, I want to simulate it for performance.
This is urgent,it will go along way to help me in my work
Hi!
After installing a protocol in ns2.29 and try to run a .tcl file I get the following:
[code omitted because of length]
: invalid command name "DataGenerator/TemperatureDataGenerator"
while executing
"DataGenerator/TemperatureDataGenerator set sensing_interval_ 0.0"
I googled and got some spin package ,which I tried to modify,and the erros orccurring I corrected them
Though I didn't get the message installed successfully.
Am not quite sure whether it was necessary to get that message.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,512
Rep:
# 8 : ! Mannasim !
Quote:
invalid command name "DataGenerator/TemperatureDataGenerator"
The protocol "DataGenerator/TemperatureDataGenerator" is found in mannasim only.
May be you are using the wrong 'ns' executable ?
The safe thing to do when you have more than one 'ns' executable :
Rename the mannasim 'ns' to e.g. 'ns-mannasim'.
( The mannasim examples will work OK : $ ns-mannasim mannasim-rede-plana.tcl ).
Or may be you have added SPIN to an ns-2.29 that already is patched with mannasim ?
Please use another ns-2.29 for SPIN : A new ns-allinone-2.29.3 in a new folder.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.