View Single Post
Old 2020-09-26, 08:27   #5
xilman
Bamboozled!
 
xilman's Avatar
 
"π’‰Ίπ’ŒŒπ’‡·π’†·π’€­"
May 2003
Down not across

1064410 Posts
Default

Quote:
Originally Posted by Xyzzy View Post
When you run it, you redirect the screen output to a file.

You can use tee to do this. (It will bifurcate the output.)

Instead of using tee, we redirect to a file and then use watch to display the file contents at regular intervals.

One example:

ecm > results.txt &
watch -n 60 cat results.txt


The & puts the ecm process into the background while leaving it running.

Or you could grep the results file for factor lines:

ecm > results.txt &
watch -n 60 grep actor results.txt


You will want to read up on "job control".
"tail -f" is how I do it.
xilman is offline