View Single Post
Old 2020-09-26, 00:49   #3
storm5510
Random Account
 
storm5510's Avatar
 
Aug 2009

77F16 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".
Thank you for the reply!.

I believe the majority of what you have written above is for Linux. I am using Windows 7 Pro x64.

I have used a small program called mtee in the past. It duplicates everything on the screen into a text file without blanking the screen.

I don't understand why anyone would write a program like this and not include a critical item as part of the results.
storm5510 is offline