NS-2.27 and Leach

Tuesday, April 27, 2004

Looking for TDMAschedule.*.txt

Problem:
The rest of the tcl scripts that she wrote for leach has some directory pointing problems. Those are easily fixable. However, the script, uamps.tcl, asks for "TDMAschedule.*.txt", which I have no idea where to find them.

Fix:
They were being deleted if they existed, not being created. Error in the syntax of the catch statement.

catch "eval exec rm [glob $opt(dirname)/TDMAschedule.*.txt]"

changes to:

catch {eval exec rm [glob $opt(dirname)/TDMAschedule.*.txt]}

This way, the eval statement is treated as an argument into catch, so that it doesn't error out.

0 Comments:

Post a Comment

<< Home