Dear folks,

how can I execeute a awk (or any other script) from
within ruby?

Currently I'm looking into the exec and fork part of
the kernel class but I'm not too sure I'm on the right
trach.

The while loop in the script looks like this in test:

while i<=202
location<< "#{i}"
exec "gawk -f fix_creacity.awk $location> defile.txt"

i=i+1
location="snapshot"
end

But in the ruby book I have seen that after the ruby
script doesn't get after the exec. 

But I want to repeat this a few times so what could I
do? Every time the while statement gets executed, I
would like a new output file.

Brdgs
Robert





		
__________________________________ 
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com