LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-07-2020, 06:40 PM   #1
karam84
LQ Newbie
 
Registered: Nov 2019
Posts: 2

Rep: Reputation: Disabled
Setdest Command not excute in NS2.35


hi everybody ...
I was trying to use setdest for generating random movements in NS-2.35 on Ubuntu 12.04

Output is:

~/ns-allinone-2.34/ns-2.34/indep-utils/cmu-scen-gen/setdest$ setdest -n 50 –p 100 –M 5 –t 200 –x 800 –y 800 >scen-50-5

usage:

<original 1999 CMU version (version 1)>
setdest -v <1> -n <nodes> -p <pause time> -M <max speed>
-t <simulation time> -x <max X> -y <max Y>

OR
<modified 2003 U.Michigan version (version 2)>
setdest -v <2> -n <nodes> -s <speed type> -m <min speed> -M <max speed>
-t <simulation time> -P <pause type> -p <pause time> -x <max X> -y <max Y>
(Refer to the script files make-scen.csh and make-scen-steadystate.csh for detail.)

it is generating scen-50-5 file but itz empty...
Please tell me where i am going wrong?
 
Old 03-08-2020, 12:48 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Welcome to LQ.
Quote:
$ setdest -n 50 –p 100 –M 5 –t 200 –x 800 –y 800 >scen-50-5
Some of the hyphens ( - ) are OK.
However, all the " – " are invalid.

This command works OK :
Code:
$ setdest -n 50 -p 100 -M 5 -t 200 -x 800 -y 800 > scen-50-5
... and scen-50-5, 3509 lines / 137.1 KiB is created
-
Attached Files
File Type: txt setdest-README-extra.txt (3.8 KB, 21 views)

Last edited by knudfl; 03-08-2020 at 01:07 PM.
 
Old 03-10-2020, 06:26 PM   #3
karam84
LQ Newbie
 
Registered: Nov 2019
Posts: 2

Original Poster
Rep: Reputation: Disabled
i used this command
setdest -n 50 -p 100 -M 5 -t 200 -x 800 -y 800 > scen-50-5

output is :

~/ns-allinone-2.35/ns-2.35/indep-utils/cmu-scen-gen/setdest$ setdest -n 50 -p 100 -M 5 -t 200 -x 800 -y 800 > scen-50-5

usage:

<original 1999 CMU version (version 1)>
setdest -v <1> -n <nodes> -p <pause time> -M <max speed>
-t <simulation time> -x <max X> -y <max Y>

OR
<modified 2003 U.Michigan version (version 2)>
setdest -v <2> -n <nodes> -s <speed type> -m <min speed> -M <max speed>
-t <simulation time> -P <pause type> -p <pause time> -x <max X> -y <max Y>
(Refer to the script files make-scen.csh and make-scen-steadystate.csh for detail.)

the problem is still????
it is generating scen-50-5 file but itis empty...
what i doing?????
 
Old 03-10-2020, 07:20 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #3.

If your location is "ns-allinone-2.35/ns-2.35/indep-utils/cmu-scen-gen/setdest/"
... the command is :
Code:
./setdest -n 50 -p 100 -M 5 -t 200 -x 800 -y 800 > scen-50-5
... unless you have copied the executable setdest to a system PATH (default is /usr/local/bin ).

I.e. to run an executable in the current directory, type ./ before the executable.

-
 
  


Reply

Tags
ns2, setdest



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
[SOLVED] issue in running setdest in ns2.35,,ubuntu 12.04 32bit rc49 Programming 3 07-19-2022 10:35 AM
[SOLVED] URGENT: NS2.35 Mobility "setdest" Problem digitalcryptic Linux - Newbie 2 09-11-2015 02:49 AM
Error when use command setdest to make node movement in ns2 kien2106 Linux - Networking 2 05-18-2014 10:21 PM
[SOLVED] Setdest Command not found in NS2.33 vishalpolara Linux - Newbie 4 01-12-2013 02:50 AM
how to access setdest function in ns2 naren123.k Programming 1 04-26-2011 03:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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