Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
1c9fe840
Commit
1c9fe840
authored
Jan 23, 2006
by
Timothy Stack
Browse files
Make lanstr valid NS syntax.
parent
7d6872fe
Changes
2
Hide whitespace changes
Inline
Side-by-side
www/tutorial/loop.ns
View file @
1c9fe840
...
...
@@ -7,8 +7,7 @@ set lanstr ""
for {set i 1} {$i <= $maxnodes} {incr i} {
set node($i) [$ns node]
set name node-${i}
append lanstr "$name "
append lanstr "$node($i) "
tb-set-node-os $node($i) FBSD-STD
}
...
...
www/tutorial/tutorial.html
View file @
1c9fe840
<!--
EMULAB-COPYRIGHT
Copyright (c) 2000-200
5
University of Utah and the Flux Group.
Copyright (c) 2000-200
6
University of Utah and the Flux Group.
All rights reserved.
-->
<center>
...
...
@@ -252,8 +252,7 @@ example of a simple loop:
for {set i 1} {$i
<
=
$
maxnodes
}
{
incr
i
}
{
set
node
($
i
)
[$
ns
node
]
set
name
node-
${
i
}
append
lanstr
"$
name
"
append
lanstr
"$
node
($
i
)
"
tb-set-node-os
$
node
($
i
)
FBSD-STD
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment