title: How can I open LibreOffice Calc and close it in headless mode
body: <p>I have .iqy file which is Internet query file for Excel. If I open that file with LibreOffice Calc I can get the sheet correctly populated with the data and I can save it as I please with GUI.</p>
  
  <p>My question is how to open that file in headless mode in a way that I can save the populated file as .xls file? Preferred solutions would be either bash scripting or Python because I could easily implement them in my current project.</p>
  
  <p>The steps I want to do in headless mode are as following:</p>
  
  <ol>
  <li>Open .iqy file with LibreOffice Calc</li>
  <li>Wait for spreadsheet to populate from data</li>
  <li>Save As .xls</li>
  </ol>
  
  <p>I can make them easily with GUI, but on server I am working I should be able to do these things without GUI via scripting.</p>
  
  <p>EDIT: It seems that there is no other way than try to do it via LibreOffice API. I post update here if I manage to find workaround.</p>