Go Back > New To GIMPS? Start Here! > Information & Answers

Thread Tools
Old 2017-08-01, 17:30   #12
GP2's Avatar
Sep 2003

22·647 Posts

Originally Posted by S485122 View Post
One thing that we and the document perhaps forgot to say, or that you did not notice : when changing settings or data in the configuration or work files, it is best to stop Prime95, when you restart it, it reads local.txt, prime.txt and worktodo.txt again.

There is a trick you can use to modify worktodo.txt without stopping Prime95/mprime first.

It's based on the fact that if you create a worktodo.add file (or worktodo.add.txt) in the same working directory as your worktodo.txt file, then the next time the program does a disk write to save the p* savefiles, it will read the "add" file and append its lines to the existing worktodo.txt file.

The interval in minutes is specified in the DiskWriteTime= line in prime.txt, and is usually 30 minutes. So you can just look at the timestamp for the most recent p* savefile, and figure out when the next disk write is due.

So if you want to edit the worktodo.txt file without stopping Prime95/mprime, you can just go ahead and edit it and then create an empty worktodo.add (or worktodo.add.txt) file. At the next disk write, the program will read the empty "add" file, "append" nothing to the worktodo.txt file, and voilĂ , you've just successfully modified worktodo.txt

Note, if you merely edit the worktodo.txt file and fail to create an empty worktodo.add (or worktodo.add.txt) file, then at the next disk write your edits will get overwritten and the original version of worktodo.txt will be restored.

This method is primarily useful if you are running mprime on a server, starting automatically at boot time, and don't have a convenient user interface to start and stop it.

There is only one way the above method might fail: if an exponent is very close to completing, and actually completes before the next scheduled disk write. The program then overwrites the existing worktodo.txt file, removing the top line to reflect the completion of that exponent, so it will probably undo your edit before it proceeds to read the empty worktodo.add (or worktodo.add.txt) file. I haven't tested this fail scenario though, but I suspect it might happen.
GP2 is offline   Reply With Quote
Old 2017-08-03, 21:36   #13
Jul 2017

1410 Posts

After 24h pausewhilerunning started to work fine (sleeping at chosen time and then restarting), no idea why it needed 24h to start working properly. Hopefully it will stay this way, thank you for all help.
patgie is offline   Reply With Quote
Old 2018-01-28, 19:08   #14
Jul 2017

2·7 Posts

Hi all, so the pausewhilerunning feature seems to work when I start prime95 during period when it is supposed to sleep, it then goes to sleep when I start it, and then resume the work as specified in the prime.txt, e.g.

DaysBetweenCheckins= 1
PauseWhileRunning=*[1] during 1-7/19:07-19:30


[Worker #1]

works fine when I start prime95 between 19:07 and 19:30 however if I start prime95 at 19:00 it will not go to sleep at 19:07 unless I restart it between 19:07 and 19:30,

do you have any idea what may be done to fix it? I have had that issue since my last post but would be nice to get it to work properly.

Thank you in advance.
patgie is offline   Reply With Quote

Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
running only at night phillipkwood Software 9 2020-09-25 19:17
Automatically start Prime95 on the mac koekie Software 2 2012-02-06 15:39
Can I just start Prime95 by running torture test? marks9GIMPS Information & Answers 5 2011-06-05 18:44
Start and Stop Prime 95 on Large Groups of Windows XP Machines MarcGetty Software 3 2006-03-07 07:54
Running all TF and P-1 at night JuanTutors Software 7 2004-08-21 13:31

All times are UTC. The time now is 11:37.

Tue Apr 20 11:37:55 UTC 2021 up 12 days, 6:18, 0 users, load averages: 2.43, 2.04, 1.97

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.