mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > PrimeNet > GPU to 72

Reply
 
Thread Tools
Old 2011-12-26, 23:13   #12
kladner
 
kladner's Avatar
 
"Kieren"
Jul 2011
In My Own Galaxy!

27AE16 Posts
Default

Quote:
Originally Posted by kladner View Post
...... Time for more study and comparison of assignments, completions, and reported status.
And found 2 more in some state of incompletion. I've restored all the ones I know about to one or the other worktodo. txt.

Thanks again, chalsall. I learned to look more carefully, I hope. I can't say how the exponents in question got lost from the work flow. I'm guessing that I had collected some results and got distracted without uploading them. Then the collect results batch file overwrote them. I just looked at the switches for Copy, but there doesn't seem to be a way to make it append to the destination. Just gotta be more attentive, I guess.

EDIT: At least I'm trying to back-check and keep track of my assignments. It's embarrassing to find things lost in limbo.

Last fiddled with by kladner on 2011-12-26 at 23:15
kladner is offline   Reply With Quote
Old 2011-12-27, 08:04   #13
ckdo
 
ckdo's Avatar
 
Dec 2007
Cleves, Germany

10228 Posts
Default

Quote:
Originally Posted by kladner View Post
I just looked at the switches for Copy, but there doesn't seem to be a way to make it append to the destination.
You want something like ...
Code:
type new_results.txt >> collected_results.txt
... I suppose?
ckdo is offline   Reply With Quote
Old 2011-12-27, 08:11   #14
axn
 
axn's Avatar
 
Jun 2003

13BB16 Posts
Default

Quote:
Originally Posted by ckdo View Post
You want something like ...
Code:
type new_results.txt >> collected_results.txt
... I suppose?
Or
Code:
copy /b collected.txt + new.txt
axn is offline   Reply With Quote
Old 2011-12-27, 08:33   #15
Dubslow
Basketry That Evening!
 
Dubslow's Avatar
 
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

3·29·83 Posts
Default

Quote:
Originally Posted by ckdo View Post
You want something like ...
Code:
type new_results.txt >> collected_results.txt
... I suppose?
Lol he's on Winblows, not Linux (how silly ) He'll have to rely on axn.

It's amazing, all the disparaging names for Windows I've picked up here.
Dubslow is offline   Reply With Quote
Old 2011-12-27, 09:11   #16
ckdo
 
ckdo's Avatar
 
Dec 2007
Cleves, Germany

10228 Posts
Default

Quote:
Originally Posted by Dubslow View Post
Lol he's on Winblows, not Linux (how silly )
... which is why I said "type" and not "cat".
ckdo is offline   Reply With Quote
Old 2011-12-27, 09:33   #17
smh
 
smh's Avatar
 
"Sander"
Oct 2002
52.345322,5.52471

29·41 Posts
Default

type should work perfectly fine on windows too
smh is offline   Reply With Quote
Old 2011-12-27, 16:27   #18
kladner
 
kladner's Avatar
 
"Kieren"
Jul 2011
In My Own Galaxy!

27AE16 Posts
Default

Thanks to ckdo, axn, and smh. I will see what I can do with those alternatives. I take it that
Code:
type new_results.txt >> collected_results.txt
would add "new_results" to "collected_results" by way of the redirect. Is it possible to specify more than one source (source1+source2) in this scenario?

What I am trying to accomplish is to take the contents of 2 or 3 results.txt files (in different directories, of course), put them in a single file, and clear the results.txt files.

Currently, I use
Code:
e:
cd \mfaktc_32-64
copy "mfaktc-0.18a\results.txt"+"mfaktc-0.18b\results.txt"+"mfaktc-0.18c\results.txt" "Results-kladner.txt"
copy results.txt "mfaktc-0.18a" /y
copy results.txt "mfaktc-0.18b" /y
copy results.txt "mfaktc-0.18c" /y
This puts the results contents in one file, and overwrites the source files with an empty copy of results.txt. Fine, so far. But the next time the batch file is run, it overwrites the destination instead of appending to it. This is what I think happened to a block of results which had not been uploaded.

After uploading I'm still left to move the collected contents to an archive file, but I haven't bothered to try to automate that step.

@axn: Why would the /b (binary file) be used when "results" is a text file? Would it be handled differently?

In the example given,
Code:
copy /b collected.txt + new.txt
where would the combined results end up when no destination is specified?

Again, thanks to all who responded.
kladner is offline   Reply With Quote
Old 2011-12-27, 18:04   #19
KyleAskine
 
KyleAskine's Avatar
 
Oct 2011
Maryland

2·5·29 Posts
Default My script

It sounds like this is going to be the same thing that everyone else has said, but here is my actual batch file from my win PC.


copy /b "c:\users\kyle\desktop\mfakto-0.10 - Win - 1\results.txt" + "c:\users\kyle\desktop\mfakto-0.10 - Win - 2\results.txt" "c:\users\kyle\desktop\prime results\results.txt"
del "c:\users\kyle\desktop\mfakto-0.10 - Win - 1\results.txt"
del "c:\users\kyle\desktop\mfakto-0.10 - Win - 2\results.txt"

After I upload the combined results.txt to Primenet and James' site, I then move it to a results.old.txt in that same directory.

If you want to do that automatically you can add this line to the end:

copy /b "c:\users\kyle\desktop\prime results\results.old.txt" + "c:\users\kyle\desktop\prime results\results.txt" "c:\users\kyle\desktop\prime results\results.old.txt"

After you upload the results.txt you can then delete that file.

PS - the /b makes it so you don't get the annoying end of file character (if you have ever dealt with FTP systems you know what sort of havoc ASCII mode can cause).
KyleAskine is offline   Reply With Quote
Old 2011-12-27, 18:15   #20
kladner
 
kladner's Avatar
 
"Kieren"
Jul 2011
In My Own Galaxy!

1015810 Posts
Default

Quote:
Originally Posted by KyleAskine View Post

PS - the /b makes it so you don't get the annoying end of file character (if you have ever dealt with FTP systems you know what sort of havoc ASCII mode can cause).
Hi Kyle,
Thanks for the examples, and for the explanation about /b. I had wondered why that little character was added to the end of the file.

You took a different approach to removing results.txt files after the contents had been collected. It had not occurred to me that the files could be deleted, and that mfaktc would create another results.txt.
kladner is offline   Reply With Quote
Old 2011-12-30, 20:25   #21
petrw1
1976 Toyota Corona years forever!
 
petrw1's Avatar
 
"Wayne"
Nov 2006
Saskatchewan, Canada

22×7×167 Posts
Default I lost 4 P-1 assignments

4 P-1 assignments that I received within the last month or so are still in my worktodo.txt; but NOT listed on my GPU-to-72 assignments page.

- When I do exponent status in PrimeNet they all show as:
Quote:
LL testing to "GPU Factoring" on 2011-12-29
- None of them have a completed P-1.
- All have been factored by GPU to 72 bits.
- Xyzzy did bit 72 in all 4 cases (please don't take this as accusing - simply listing facts)
- Of the 3 quads I have working on these P-1, two of the lost are from one of them and two from another
- They are not always the first or last for the worker.

Code:
51765079
51766133
51842653
51871383
Thanks

Last fiddled with by petrw1 on 2011-12-30 at 20:29
petrw1 is online now   Reply With Quote
Old 2011-12-30, 21:21   #22
chalsall
If I May
 
chalsall's Avatar
 
"Chris Halsall"
Sep 2002
Barbados

230028 Posts
Default

Quote:
Originally Posted by petrw1 View Post
4 P-1 assignments that I received within the last month or so are still in my worktodo.txt; but NOT listed on my GPU-to-72 assignments page.
Something a bit strange happened yesterday and the day before at around midnight UTC...

PrimeNet assigned Spidy about 20 candidates that it already owned. Spidy didn't expect this to ever happen (blame its trainer...) so they were placed in the available candidates pool, and some were assigned to another worker.

I'm going through the logs and DB records to figure out who has been effected (appears to be about five users) and let them all know the situation.

I'm also giving Spidy some new lessons to prevent this from happening again.

petrw1, if it's not too much of a pain, could you please remove these four P-1 lines from your worktodo.txt file(s) if you haven't already starting working on them?

(Why does stuff like this always happen when I can least afford the time? )
chalsall is online now   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
disk died, prime work lost forever? where to put prime? on SSD or HDD? emily PrimeNet 3 2013-03-01 05:49
new assignment esakertt PrimeNet 6 2012-11-09 19:51
Want New Assignment Unregistered Information & Answers 1 2012-03-28 00:02
Old Assignment Primeinator PrimeNet 4 2009-06-04 22:35
How would you know if I died ? rogue Soap Box 9 2005-11-08 19:50

All times are UTC. The time now is 15:13.


Fri Jul 16 15:13:36 UTC 2021 up 49 days, 13 hrs, 2 users, load averages: 1.72, 1.76, 1.73

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, 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.