Discussion:
A2 - Transient Loops
(too old to reply)
Benson Lu
2009-03-05 22:01:13 UTC
Permalink
Hello,

I have the first part of the assignment done, where entering ID will
generate an 'output.ID' file.

As for the transient loop script, I'm not understanding what we are
suppose to do. As the description stated, the input file needs to be
called 'edge'. But for the script, we need 2 edge files, edges.loop.1 and
edges.loop.2. So is the script suppose to RENAME the first edge file to
'edge', then run our program to generate output files, then RENAME the
second edge file to 'edge' and run our program again. But this time, we
find a loop?

So, are we suppose to rename the edge files? Or hardcode in our program to
read both edge.loop.1 and edge.loop.2 files? But the later option
contradicts the description.

Thanks!
Benson
Tom Gault
2009-03-05 23:00:45 UTC
Permalink
From the assignment:

"The script should copy the edge files in place during the execution to
simulate a link failure."

From Tom
Post by Benson Lu
Hello,
I have the first part of the assignment done, where entering ID will
generate an 'output.ID' file.
As for the transient loop script, I'm not understanding what we are
suppose to do. As the description stated, the input file needs to be
called 'edge'. But for the script, we need 2 edge files, edges.loop.1 and
edges.loop.2. So is the script suppose to RENAME the first edge file to
'edge', then run our program to generate output files, then RENAME the
second edge file to 'edge' and run our program again. But this time, we
find a loop?
So, are we suppose to rename the edge files? Or hardcode in our program to
read both edge.loop.1 and edge.loop.2 files? But the later option
contradicts the description.
Thanks!
Benson
Benson Lu
2009-03-06 02:03:36 UTC
Permalink
Mind saying that in other wordings? I don't understand the description,
that's why I posted.

Thanks!
Post by Tom Gault
"The script should copy the edge files in place during the execution to
simulate a link failure."
From Tom
Post by Benson Lu
Hello,
I have the first part of the assignment done, where entering ID will
generate an 'output.ID' file.
As for the transient loop script, I'm not understanding what we are
suppose to do. As the description stated, the input file needs to be
called 'edge'. But for the script, we need 2 edge files, edges.loop.1 and
edges.loop.2. So is the script suppose to RENAME the first edge file to
'edge', then run our program to generate output files, then RENAME the
second edge file to 'edge' and run our program again. But this time, we
find a loop?
So, are we suppose to rename the edge files? Or hardcode in our program to
read both edge.loop.1 and edge.loop.2 files? But the later option
contradicts the description.
Thanks!
Benson
Martin Karsten
2009-03-06 02:13:02 UTC
Permalink
It means during the execution of the script, at some point (maybe at the
beginning) execute

cp edges.loop.1 edges

and sometimes later

cp edges.loop.2 edges
Post by Benson Lu
Mind saying that in other wordings? I don't understand the description,
that's why I posted.
Thanks!
Post by Tom Gault
"The script should copy the edge files in place during the execution to
simulate a link failure."
From Tom
Post by Benson Lu
Hello,
I have the first part of the assignment done, where entering ID will
generate an 'output.ID' file.
As for the transient loop script, I'm not understanding what we are
suppose to do. As the description stated, the input file needs to be
called 'edge'. But for the script, we need 2 edge files, edges.loop.1 and
edges.loop.2. So is the script suppose to RENAME the first edge file to
'edge', then run our program to generate output files, then RENAME the
second edge file to 'edge' and run our program again. But this time, we
find a loop?
So, are we suppose to rename the edge files? Or hardcode in our program to
read both edge.loop.1 and edge.loop.2 files? But the later option
contradicts the description.
Thanks!
Benson
Benson Lu
2009-03-06 02:52:43 UTC
Permalink
Perfect! Thank you~

Ben
Post by Martin Karsten
It means during the execution of the script, at some point (maybe at the
beginning) execute
cp edges.loop.1 edges
and sometimes later
cp edges.loop.2 edges
Post by Benson Lu
Mind saying that in other wordings? I don't understand the description,
that's why I posted.
Thanks!
Post by Tom Gault
"The script should copy the edge files in place during the execution to
simulate a link failure."
From Tom
Post by Benson Lu
Hello,
I have the first part of the assignment done, where entering ID will
generate an 'output.ID' file.
As for the transient loop script, I'm not understanding what we are
suppose to do. As the description stated, the input file needs to be
called 'edge'. But for the script, we need 2 edge files, edges.loop.1 and
edges.loop.2. So is the script suppose to RENAME the first edge file to
'edge', then run our program to generate output files, then RENAME the
second edge file to 'edge' and run our program again. But this time, we
find a loop?
So, are we suppose to rename the edge files? Or hardcode in our program to
read both edge.loop.1 and edge.loop.2 files? But the later option
contradicts the description.
Thanks!
Benson
Loading...