mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   GMP-ECM (https://www.mersenneforum.org/forumdisplay.php?f=55)
-   -   Interpreting Results (https://www.mersenneforum.org/showthread.php?t=26006)

storm5510 2020-09-26 00:05

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. :unsure:

Xyzzy 2020-09-26 00:19

When you run it, you redirect the screen output to a file.

You can use [C]tee[/C] to do this. (It will bifurcate the output.)

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

One example:

[C]ecm > results.txt &
watch -n 60 cat results.txt[/C]

The [C]&[/C] puts the ecm process into the background while leaving it running.

Or you could grep the results file for factor lines:

[C]ecm > results.txt &
watch -n 60 grep actor results.txt[/C]

You will want to read up on "[URL="https://en.wikipedia.org/wiki/Job_control_%28Unix%29"]job control[/URL]".

storm5510 2020-09-26 00:49

[QUOTE=Xyzzy;557913]When you run it, you redirect the screen output to a file.

You can use [C]tee[/C] to do this. (It will bifurcate the output.)

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

One example:

[C]ecm > results.txt &
watch -n 60 cat results.txt[/C]

The [C]&[/C] puts the ecm process into the background while leaving it running.

Or you could grep the results file for factor lines:

[C]ecm > results.txt &
watch -n 60 grep actor results.txt[/C]

You will want to read up on "[URL="https://en.wikipedia.org/wiki/Job_control_%28Unix%29"]job control[/URL]".[/QUOTE]

Thank you for the reply!. :smile:

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

I have used a small program called [I]mtee[/I] 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. :ermm:

Xyzzy 2020-09-26 03:37

[QUOTE=storm5510;557919]I don't understand why anyone would write a program like this and not include a critical item as part of the results. :ermm:[/QUOTE][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.[/QUOTE][URL]https://en.wikipedia.org/wiki/Unix_philosophy#Do_One_Thing_and_Do_It_Well[/URL]

xilman 2020-09-26 08:27

[QUOTE=Xyzzy;557913]When you run it, you redirect the screen output to a file.

You can use [C]tee[/C] to do this. (It will bifurcate the output.)

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

One example:

[C]ecm > results.txt &
watch -n 60 cat results.txt[/C]

The [C]&[/C] puts the ecm process into the background while leaving it running.

Or you could grep the results file for factor lines:

[C]ecm > results.txt &
watch -n 60 grep actor results.txt[/C]

You will want to read up on "[URL="https://en.wikipedia.org/wiki/Job_control_%28Unix%29"]job control[/URL]".[/QUOTE]"tail -f" is how I do it.

storm5510 2020-09-26 16:35

I am going to quote myself:

[QUOTE=storm5510;557919]

[B]I am using [I]Windows 7 Pro x64[/I][/B].

[/QUOTE]

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 [I]Ubuntu on Windows[/I] loaded on my Windows 10 rig, and it works well. I only know enough to get by.

I am content to use [I]mtee[/I] to duplicate my results into a text file. The file gets big in a hurry though. I use [I]Notepad++[/I] 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.

VBCurtis 2020-09-26 17:38

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.


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

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