![]() |
|
|
#89 |
|
Sep 2008
Bromley, England
43 Posts |
It should be possible to write the whole thing in perl, avoiding the use of bat scripts altogether. I've given it a go. Do you want me to post what I've managed so far?
|
|
|
|
|
|
#90 |
|
"Mr. Meeseeks"
Jan 2012
California, USA
23×271 Posts |
|
|
|
|
|
|
#91 |
|
"Jerry"
Nov 2011
Vancouver, WA
112310 Posts |
I second that ;)
|
|
|
|
|
|
#92 |
|
Sep 2008
Bromley, England
43 Posts |
Here goes ...
I've managed to cobble together some code that appears to do the job on my computer (Windows 7 64bit/ActivePerl/mfaktc). Please note that since I started writing this, (all of 5 days ago), PrimeNet no longer gives inflated credit for factors found when submitted manually, so the variable $RemFact needs to be set at 0, unless you fancy having a play. It was written assuming that multiple instances of mfakt* are run in subdirectories/folders and not in the same directory/folder as the script itself. It should still work, however not much in the way of results consolidation will be going on. The usual rules apply. No guarantees, for research purposes only, I can't safeguard against data loss, and if I've upset anybody for any reason whatsoever then I'm very very sorry etc. mognuts |
|
|
|
|
|
#93 |
|
Sep 2008
Bromley, England
1010112 Posts |
I've modified the code to make it a little more robust and added a couple of extra features. I've also removed the typos that crept in the previous version.
If anybody wants to try this and evaulate it then I'll be very greatful. mog |
|
|
|
|
|
#94 |
|
Account Deleted
"Tim Sorbera"
Aug 2006
San Antonio, TX USA
17·251 Posts |
I found a bug in the script. If you have mfakt* (mfaktc at least; I'd guess mfakto has this option as well) set to include the UID prefix using the V5UserID and ComputerID options, the regex used to detect results no longer finds a match, since it only looks at the start of the line:
Code:
if ($Line =~ /^no factor for (M\d*)/ || $Line =~ /^(M\d*) has a factor/
|| $Line =~ /^(M\d*) no factor from/) {
Code:
if ($Line =~ /no factor for (M\d*)/ || $Line =~ /(M\d*) has a factor/
|| $Line =~ /(M\d*) no factor from/) {
|
|
|
|
|
|
#95 | |
|
If I May
"Chris Halsall"
Sep 2002
Barbados
260216 Posts |
Quote:
The script was written before there was an option for a UN/CN to be included in the results. And I'm long overdue to release my Fetching/Submitting spider, which subsumes the previous code. But I'll be sure to take this into account (with appropriate credit, of course... ).
|
|
|
|
|
|
|
#96 |
|
"Mike"
Aug 2002
3×2,741 Posts |
What is the status of the spider?
http://www.gpu72.com/spider/ Does it still have issues with returning factors? Thanks!
|
|
|
|
|
|
#97 |
|
If I May
"Chris Halsall"
Sep 2002
Barbados
2·5·7·139 Posts |
Only when Primenet isn't accepting them; it is at the moment.
Unfortunately the Spider was a quick and dirty hack (not nearly as sophisticated as MISFIT), and doesn't handle failed communications very well. In the case of an error, it simply renames the file as "not_completely_submitted_${Now}.txt". What I do is every few days check the directory mfaktc and the spider are running in, and if I see any such files execute the command "cat not_completely_submitted_* >> results.txt; rm not_completely_submitted_*". |
|
|
|
|
|
#98 |
|
"Mike"
Aug 2002
3·2,741 Posts |
What happens if work is reported "out of order"?
Example: Say you are trial factoring from 71 to 74, and when the spider tries to communicate that 71-72 is done, it fails, and then a while later it reports, successfully, that 72-73 and 73-74 is done. Later you want to report the 71-72 part. What happens? |
|
|
|
|
|
#99 | |
|
If I May
"Chris Halsall"
Sep 2002
Barbados
2×5×7×139 Posts |
Quote:
Although I have never encountered this myself, in such a case additional human interaction is required, since a "not required" message from Primenet is not considered a communications error and so the results.txt file is not moved to "not_completely_submitted_${now}.txt". The commands: Code:
cat not_completely_submitted_* > temp.txt grep [EXPONENT_IN_QUESTION] sent/*.txt >> temp.txt sort temp.txt >> results.txt rm not_completely_submitted_* temp.txt |
|
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| GPU to 72 spider poaching exponents? | ixfd64 | GPU to 72 | 2 | 2014-07-27 20:38 |
| It Seems The Great Spider ... | Dubslow | Forum Feedback | 13 | 2012-06-01 13:39 |
| Automatic temperature control | TObject | Software | 13 | 2012-04-27 19:33 |
| Went from 8 workers to 4 workers on v26.6 upgrade | dmoran | Software | 13 | 2011-05-23 12:36 |
| Manual submission of automatic assignment result | tichy | PrimeNet | 4 | 2010-12-17 09:57 |