R
Robert Gilaard
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<=3D202
location<< "#{i}"
exec "gawk -f fix_creacity.awk $location> defile.txt"
i=3Di+1
location=3D"snapshot"
end
But in the ruby book I have seen that after the ruby
script doesn't get after the exec.=20
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
=09
__________________________________=20
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com
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<=3D202
location<< "#{i}"
exec "gawk -f fix_creacity.awk $location> defile.txt"
i=3Di+1
location=3D"snapshot"
end
But in the ruby book I have seen that after the ruby
script doesn't get after the exec.=20
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
=09
__________________________________=20
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com