mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > GMP-ECM

Closed Thread
 
Thread Tools
Old 2020-09-26, 00:05   #1
storm5510
Random Account
 
storm5510's Avatar
 
Aug 2009
U.S.A.

2·809 Posts
Default Interpreting Results

When GMP-ECM find a factor, it displays it on the screen. That is all well and good. Does it write the factor into a file somewhere? Its results file is rather convoluted.
storm5510 is offline  
Old 2020-09-26, 00:19   #2
Xyzzy
 
Xyzzy's Avatar
 
"Mike"
Aug 2002

5×23×67 Posts
Default

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".
Xyzzy is offline  
Old 2020-09-26, 00:49   #3
storm5510
Random Account
 
storm5510's Avatar
 
Aug 2009
U.S.A.

161810 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  
Old 2020-09-26, 03:37   #4
Xyzzy
 
Xyzzy's Avatar
 
"Mike"
Aug 2002

5·23·67 Posts
Default

Quote:
Originally Posted by storm5510 View Post
I don't understand why anyone would write a program like this and not include a critical item as part of the results.
Quote:
This is the Unix philosophy: Write programs that do one thing and do it well. Write programs to work together. Write programs to handle text streams, because that is a universal interface.
https://en.wikipedia.org/wiki/Unix_p...and_Do_It_Well
Xyzzy is offline  
Old 2020-09-26, 08:27   #5
xilman
Bamboozled!
 
xilman's Avatar
 
"π’‰Ίπ’ŒŒπ’‡·π’†·π’€­"
May 2003
Down not across

2×3×7×241 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 online now  
Old 2020-09-26, 16:35   #6
storm5510
Random Account
 
storm5510's Avatar
 
Aug 2009
U.S.A.

31228 Posts
Default

I am going to quote myself:

Quote:
Originally Posted by storm5510 View Post

I am using Windows 7 Pro x64.
I just want to make sure it was not missed the first time. I have nothing against Linux. As a matter of fact, I have Ubuntu on Windows loaded on my Windows 10 rig, and it works well. I only know enough to get by.

I am content to use mtee to duplicate my results into a text file. The file gets big in a hurry though. I use Notepad++ to browse it while it is being added to. It opens any file as a copy then closes it, but stays aware of the file being changed if left loaded in a tab, even when unloaded itself. A handy tool.
storm5510 is offline  
Old 2020-09-26, 17:38   #7
VBCurtis
 
VBCurtis's Avatar
 
"Curtis"
Feb 2005
Riverside, CA

23·191 Posts
Default

If you like your solution, then you don't need to keep telling us you run Win7.

If you like someone else's solution, then grab the relevant unix utility for windows, drop it into your ECM folder (or install globally, if you prefer), and use their solution.

A search engine will turn up plenty of these simple unix programs for Win7, though I can't promise each one mentioned in this thread is available.
VBCurtis is online now  
Closed Thread

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
And now for some TF results... lycorn Data 211 2020-08-08 17:42
Statistical properties of categories of GIMPS results and interim results kriesel Probability & Probabilistic Number Theory 1 2019-05-22 22:59
Interpreting a paper: ei and erf CRGreathouse Math 2 2009-05-14 15:39
Interpreting Screen Info. A_Pryme Data 16 2005-02-13 23:05
0x results... Mike PrimeNet 11 2004-05-23 12:55

All times are UTC. The time now is 19:48.

Sun Oct 25 19:48:24 UTC 2020 up 45 days, 16:59, 0 users, load averages: 2.24, 1.82, 1.61

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.