Hello,

I am trying to let users to get meaningful time remaining measurements from
the parallel output. For now I am putting parallel 2 output to a file. The
problem is that the file is constantly being updated and, then, even if I
can watch it properly with "tail -f ..." I cannot do, for example:
tail -n1 file | cut -d " " -f2 -> to get the seconds left, neither awk.
Both end up showing "0s" probably because they read the whole file at the
end.

Do you know how could I solve this issue? In summary, I would need to get
simply the number of seconds left when the user asks for it and, after
that, play with that number (to show the format in hours ans so).

Thanks a lot

Reply via email to