|
From: | Pacho Ramos |
Subject: | Re: Problems to reuse --eta output |
Date: | Tue, 26 Dec 2017 13:17:26 +0100 |
This is one example of the output file... as you see, I would like to end up getting this output103sBut, instead, I get 0s with awk, cut, grep...2017-12-18 12:11 GMT+01:00 Pacho Ramos <pachoramos@gmail.com>: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
[Prev in Thread] | Current Thread | [Next in Thread] |