I am converting a CSV XLS 2 file with a system command in Ruby.
After the conversion, I process the CSV files, but the conversion is still performed when the program wants to process the files, so they are missing at this time.
Can someone tell me if it is possible to let Ruby wait for the right amount of time to complete the system command?
Now I am using:
sleep 20
but if it takes more time once, this is not correct, of course.
What am I doing specifically:
#Call on the program to convert xls command = "C:/Development/Tools/xls2csv/xls2csv.exe C:/TDLINK/file1.xls" system(command) do_stuff def do_stuff
ruby
Ignace
source share