Interesting question. We're doing more or less the same and last week exactly the same question was raised.
?
Is it possible to run another process which checks the content of the raw file which is being build during the simulation? Not sure whether it can be read during simulation, but a copy can be made during simulation. This works on windows, so I assume the same holds for Linux.
?
Next step is decoding the raw file format. See this page for the structure:
?
At least you should be able then to find out what is the current time point in your simulation. This might already be sufficient for you.?
?
For the percentage completion you need to decode the actual begin and end times from the .tran statements (assuming you do transient analysis of circuits). Sometimes these are straightforward and sometimes I see very interesting and complex constructions with formulas and .params.
?
LTspice 24.1 has the feature to plot the resulting parameters (.options logparams), but unfortunately these are only added to the logfile at the very end of the simulation. Possibly this could be changed to printing the params to the log file right at the start. Then you know exactly the results of the complex constructs. Maybe Mathias is listening in on this topic as well :-) We could ask on the EngineerZone forum for this change. In that case you know exactly where you are in time and percentage.?
?