PDA

View Full Version : Need help creating batch file.



jasong
01-20-2007, 11:27 PM
Since I'm obsessive compulsive, I like to keep track of patterns that my brain latches onto to. My latest addiction has to with ecm curves on this page. (http://oddperfect.no-ip.com:8201/)

I want to create a file that does the following:

If you look, you'll notice that the page has a very basic pattern to it. Basically, I want to look up two strings. The first string is 3221_73M. When that string is found, I want to find 260000000(7 zeros, there) and look up the number of curves next to it. I then want to take a text file called 3221_73M.txt, print a time stamp on the first available line, a space, the curve number, a slash, then '43,670'.

The second string is 2801_83M. I'd like to do something similar to that one, except I want to look up 43000000, do the same stuff, but after the slash for this one, print 7771.

If it isn't too much trouble, could someone help me with this? I"m on Windows, btw.

em99010pepe
01-22-2007, 03:20 PM
Jasong,

Do you have the ecmserver compiled for windows?

Carlos

jasong
01-23-2007, 06:57 PM
not sure. Why?

em99010pepe
01-24-2007, 04:32 AM
not sure. Why?

Forget, I managed to get one, not the ecmserver but the ecmclient. I just wanted to try to run it on oddperfect project.

Carlos

jasong
01-25-2007, 10:58 PM
I think the the Odd Perfect Number search is one of coolest projects out there, especially if you're a math nut that's sick of a the prime number projects.

If you have any computers with either very little or a lot of memory, I'd love to split some curves with you. In case you weren't aware, Stage 1 takes very little memory, but Stage 2 can be a real hog depending on the digit level the search is at. So sometimes people do Stage 1 on a low memory computer, then switch over to a high memory computer for stage 2. I'm not sure how to do it, but if you're interested, I can do the research.