LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-25-2013, 02:59 AM   #1
Ndia
LQ Newbie
 
Registered: May 2013
Posts: 23

Rep: Reputation: Disabled
Question ns2.29


I get following errors after installing ns2.29
Kindly help me out!


-bash: $'\r': command not found
: No such file or directory/cygwin/home/user/ns-allinone-2.29/
-bash: $'\r': command not found


$ nam
bash: nam: command not found
 
Old 05-25-2013, 04:33 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,393

Rep: Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607
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


'nam' : Please use a binary nam like :
http://www.isi.edu/nsnam/dist/binary...a11a-win32.exe
> nam-1.0a11a-win32.exe
Ref. http://www.item.ntnu.no/fag/ttm4150/labs/ns2win.html > [NAM].

-
 
Old 05-25-2013, 05:13 AM   #3
Ndia
LQ Newbie
 
Registered: May 2013
Posts: 23

Original Poster
Rep: Reputation: Disabled
@knudfl..I agree, won't start another new thread on ns-2.29

This error occurs as soon as I run Cygwin i.e am not running any script

bash: $'\r': command not found
 
Old 05-25-2013, 06:01 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,393

Rep: Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607
# 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.

-
 
Old 05-28-2013, 02:38 AM   #5
Ndia
LQ Newbie
 
Registered: May 2013
Posts: 23

Original Poster
Rep: Reputation: Disabled
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

Thanks
 
Old 05-28-2013, 03:23 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,393

Rep: Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607
# 5 :

Quote:
I want to implement SPIN protocol for Wireless sensor networks
Better find another protocol, there is no īspinī for a contemporary OS /
a contemporary computer. The old code is/was for ns-2.1b5.
https://docs.google.com/file/d/0B7S2...it?usp=sharing
 
Old 05-29-2013, 06:27 AM   #7
Ndia
LQ Newbie
 
Registered: May 2013
Posts: 23

Original Poster
Rep: Reputation: Disabled
Hi!
How can I implement security algorithms like AES,Skipjack,RC5 e.t.c in ns2

Thanks

Last edited by Ndia; 05-29-2013 at 06:37 AM.
 
Old 06-08-2013, 08:15 AM   #8
Ndia
LQ Newbie
 
Registered: May 2013
Posts: 23

Original Poster
Rep: Reputation: Disabled
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"


What's the issue?

urgent response needed please!

Regards
 
Old 06-08-2013, 08:37 AM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,393

Rep: Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607
# 8 .
Quote:
After installing a protocol in ns2.29
Which protocol ? ?
 
Old 06-08-2013, 08:53 AM   #10
Ndia
LQ Newbie
 
Registered: May 2013
Posts: 23

Original Poster
Rep: Reputation: Disabled
I implemented Spin protocol
 
Old 06-08-2013, 09:32 AM   #11
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,393

Rep: Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607
# 10 .

How did you find SPIN code for ns-2.29 ? ?
 
Old 06-09-2013, 08:31 AM   #12
Ndia
LQ Newbie
 
Registered: May 2013
Posts: 23

Original Poster
Rep: Reputation: Disabled
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.

Kindly help

Thanks
 
Old 06-10-2013, 04:50 AM   #13
Ndia
LQ Newbie
 
Registered: May 2013
Posts: 23

Original Poster
Rep: Reputation: Disabled
Hi!
Am still looking for a solution for the problem in post #8

urgent please
 
Old 06-12-2013, 03:34 AM   #14
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,393

Rep: Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607
# 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.

-
 
  


Reply


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
Differences between LEACH results on ns2.1b5 and ns2.35 deepa_2111 Linux - Software 15 05-16-2013 06:53 PM
NS2: Require eap-sim authentication code for simulation in ns2.24 noamankhatib Linux - Software 0 04-29-2013 01:03 PM
Make command not found in ns2.34 and ns2.29 Aska123 Linux - Software 11 04-09-2013 12:58 PM
i am using ubuntu as os. for NS2 to implement a routing protocol in ns2. sujovasu Programming 1 07-27-2010 02:44 AM

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

All times are GMT -5. The time now is 01:35 AM.

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