Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 03-21-2011, 12:35 PM   #1
Registered: Feb 2011
Posts: 47

Rep: Reputation: 1
what does this program do?

wad does this program do? pls advice

for {set w 24} {$w < 25} {incr w} {
set udp_($w) [new Agent/UDP];
$ns_ attach-agent $node_(1) $udp_($w);

set null_($w) [new Agent/Null];
$ns_ attach-agent $node_($w) $null_($w);

set cbr_($w) [new Application/Traffic/CBR];
$cbr_($w) set rate_ 7.5Kb
$cbr_($w) set packetSize_ 100
$cbr_($w) attach-agent $udp_($w);
$ns_ connect $udp_($w) $null_($w);
$ns_ at 100.0 "$cbr_($w) start";
$ns_ at 800.0 "$cbr_($w) stop";
Old 03-21-2011, 12:36 PM   #2
Senior Member
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,211

Rep: Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612
Where did you get it? What was it called?

Looks like a TCL script.

EDIT: Origin of this script:

Last edited by szboardstretcher; 03-21-2011 at 12:41 PM.
1 members found this post helpful.
Old 03-21-2011, 12:40 PM   #3
Registered: Feb 2011
Posts: 47

Original Poster
Rep: Reputation: 1
yup it is a tcl script, can u tell me which node did they attached it to?
wad does $ns_ attach-agent $node_(1) $udp_($w); do?

and why when i change the loop condition from
for {set w 24} {$w < 25} {incr w} {
for {set w 22} {$w < 25} {incr w} {

after this ns-2.34 will hang, why is this so?
is it in a inifinite loop?

Last edited by tootz; 03-21-2011 at 01:25 PM.
Old 03-21-2011, 01:38 PM   #4
Registered: Jan 2011
Location: Wasington state
Distribution: Mint 10
Posts: 43

Rep: Reputation: 0
Unhappy Oops

Like a mrorn, because i am still new to linux, i opened said command by copy and paste into terminal. Bad Idea, it deleted the linux partition on my mac, said acsess denied, and rebooted the computer 3 time into mac osx. Never again.


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
Could someone program a SH / Bash program with Zenity to play radio based on a site? frenchn00b Programming 2 02-25-2011 05:16 PM
open source dvd/cd copy program? burning on the fly program? vieya Linux - Software 3 12-14-2009 10:16 PM
Total recovery: Which program? ghost4linux, YaST2? Best drive imaging program? lagu2653 Linux - Software 1 06-20-2005 02:44 PM
Stop java program(threaded program..should end cleanly) rmanocha Programming 4 11-09-2004 10:36 AM
Gtk-Warning but program still works... I close konsole, program closes Laptop2250 Linux - Software 2 11-15-2003 12:18 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:13 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration