![]() |
![]() |
#1 |
41·71 Posts |
![]()
I want mprime to run only from 5pm to 7 am. What should I do.
mprime -m does not help me |
![]() |
![]() |
#2 |
"Richard B. Woods"
Aug 2002
Wisconsin USA
22×3×641 Posts |
![]()
Which version are you running? (Recently there were changes in the way schedules are specified.)
Last fiddled with by cheesehead on 2009-03-11 at 23:05 |
![]() |
![]() |
![]() |
#3 |
2,777 Posts |
![]()
The version I used is
Mersenne Prime Test Program, Version 25.7.8 Actually this is since I installed this new version I am no more able to schedule... |
![]() |
![]() |
#4 | |
6809 > 6502
"""""""""""""""""""
Aug 2003
101×103 Posts
3×3,121 Posts |
![]() Quote:
As a non-linux user: [free advice] you should be able to set up a chron job to start and kill mprime[/free advice]. Hopefully George will set-up the new while/else structure to enable a run/don't run state. Last fiddled with by Uncwilly on 2009-03-12 at 22:26 Reason: fermatting |
|
![]() |
![]() |
![]() |
#5 |
P90 years forever!
Aug 2002
Yeehaw, FL
11100101110012 Posts |
![]()
Use PauseWhileRunning and during/else described in undoc.txt. You want to use the "*" value to match any program. I don't remember the exact syntax.
|
![]() |
![]() |
![]() |
#6 |
25×67 Posts |
![]()
Thank you for your replies. I am on linux and used crontab with the following table (I want mprime running all the time except between 8am and 17pm on the week days)
00 17 * * 1-5 /home/myself/mprime/mprime 00 08 * * 1-5 /home/myself/bin/kill_mp My only difficulty was to kill mprime without knowing the job number. I made a script called kill_mp containing #!/bin/bash kill -9 $(ps -C mprime -o pid=) |
![]() |
![]() |
#7 | |
"Brian"
Jul 2007
The Netherlands
63058 Posts |
![]() Quote:
|
|
![]() |
![]() |
![]() |
#8 |
33×349 Posts |
![]()
Good, so it is sufficient then that my kill_mp file contains
#!/bin/bash kill -15 $(ps -C mprime -o pid=) isn't it? |
![]() |
![]() |
#9 |
May 2008
3·5·73 Posts |
![]() Code:
killall mprime |
![]() |
![]() |
![]() |
#10 |
Aug 2002
Ann Arbor, MI
433 Posts |
![]() Code:
In rare cases, users have reported the program can interfere with the performance of some programs such as disk defragmenters and some games. You can pause prime95 automatically when these programs are running by adding this line to prime.txt: PauseWhileRunning=prog1[n1],prog2[n2],etc The [n1], [n2] values are optional and indicate the number of worker threads to pause when prog1 and prog2 are running. The default value for n1 and n2 is to pause all worker threads. Note that prime95 will pause if the program name matches any part of the running program's file name. That is "foobar" will match "c:\foobar.exe", "C:\FOOBAR\name.exe", and even "C:\myfoobarprog.exe". Also, if prog1 is "*" prime95 will pause no matter what. Examples: PauseWhileRunning=*[1] during 6-7/2:00-3:00 PauseWhileRunning=* during 23:00-24:00 else decomp[1],mygame[2] The first example pauses one worker thread on Saturday and Sunday between 2AM and 3AM. The second example pauses all workers between 11PM and 12AM and pauses 1 worker if decomp is running and 2 if mygame is running. |
![]() |
![]() |
![]() |
#11 |
6809 > 6502
"""""""""""""""""""
Aug 2003
101×103 Posts
3·3,121 Posts |
![]() |
![]() |
![]() |