Ruby: wait for system command to end
- by Ignace
Hey all,
I'm converting an xls 2 csv with a system(command) in ruby.
After the conversion i'm processing this csv files.
But the conversion is still going when the program wants to process the files. So at that time they are non existant.
Can someone tell me if it's possible to let Ruby wait the right amount of time for the system command to finish?
Right now i'm using
sleep 20 but if it will take longer once, it isn't right of course...
Thanks!