[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ns] How to make script work in order ?



On Sun, 24 Sep 2000, Ken wrote:

> What should I do to make "line 5" be executed after "line 4" is completed ?

You could try putting quotes at the end of line 4.

L.

> 1._        set file [open queue.tr w]
> 2._        $ns at 0.0 "$ns trace-queue $n3 $n4 $file"
> 3._        $ns at 9.0 "close $file"
> 4._        $ns at 9.5 "exec awk -f count.awk queue.tr > result
> 5._        $ns at 9.9 "set tmp [open result r]; read $tmp"

<[email protected]>PGP<http://www.ee.surrey.ac.uk/Personal/L.Wood/>