mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   Software (https://www.mersenneforum.org/forumdisplay.php?f=10)
-   -   Can't figure out how to count in DOS. (https://www.mersenneforum.org/showthread.php?t=6152)

jasong 2006-07-22 20:11

Can't figure out how to count in DOS.
 
I apologize for this silly sounding problem, but the Google page I got from "dos commands" search was too cryptic for me.

Basically I want to run an ecm command in DOS and output my progress to a separate file from the curves. Something like:
[quote]You have run xxx curves at B1=xxxx from xxxxx.bat[/quote]
and then run the ecm command again(so I guess the ecm command would be part of the loop)

Btw, I'm hoping two different processors can print to the same file without too much trouble. It would make it easier to track that way.

smh 2006-07-22 21:38

You can use the [i]find /c[/i] command to count for something like [i]Step 2[/i] in the output file.

Use the [i]>[/i] to send the output to a new file. [i]>>[/i] appends to a file.

[code]find /c "Step 2" ecm-outputfile.txt >>xxxx.txt[/code]
You might want to look for some linux tools that will run under windows. For example [url]http://unxutils.sourceforge.net/[/url]

jasong 2006-07-22 21:49

Thanks, smh, that's exactly what I need. :grin:


All times are UTC. The time now is 14:02.

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