![]() |
|
|
#1 |
|
Bemusing Prompter
"Danny"
Dec 2002
California
95B16 Posts |
I think it'd be really amazing if Prime95 had an option to dump the current worker status to the console via command line. For example,
Code:
prime95 --status Code:
[Prime95 status report] Time: Sun Nov 10 11:22:25 2014 Version: 28.5 Platform: Windows (64-bit) [Worker #1] Running: true Exponent: 70532887 Type: LL Progress: 88.71% ETA: 2d 8h 39m 44s [Worker #2] Running: true Exponent: 70532911 Type: LL Progress: 80.68% ETA: 4d 2h 8m 4s [Worker #3] Running: false Exponent: 70532929 Type: P-1 Progress: S1, 45.91% ETA: 1d 17h 9m 40s [Worker #4] Running: true Exponent: 70532953 Type: P-1 Progress: S2, GCD ETA: 3m 24s Last fiddled with by ixfd64 on 2014-11-10 at 19:33 |
|
|
|
|
|
#2 |
|
P90 years forever!
Aug 2002
Yeehaw, FL
753510 Posts |
I'm all for a tool that helps me monitor my machines remotely. Alas, I have no idea how to do that. I also have no idea how to make an executable that can be both a console app and a windows app.
|
|
|
|
|
|
#3 | |
|
Mar 2006
1DF16 Posts |
Quote:
I haven't really done much Windows (gui) programming, but a quick search suggested that SendMessageTimeout might be a way to send this custom message to another process on the same computer. The timeout would be useful in case this signal is being sent to an older P95.exe that can't process this new message. Would this be for Windows only, or would you want to be able to get this status info on Mac and Linux too? |
|
|
|
|
|
|
#4 |
|
P90 years forever!
Aug 2002
Yeehaw, FL
165578 Posts |
A good solution must work for Windows, Linux, and Mac.
In my case, I have two computers running Windows and one running Linux. I'd like to monitor them from my Mac laptop (app pings the three computers hourly and pops up a message when one of the remote computers goes down). Again, I don't know how to do this. I'd be happy to incorporate code from someone that does. |
|
|
|
|
|
#5 |
|
Sep 2013
23·7 Posts |
P95 could write some status.txt to disk, in configurable intervals.
Users can view/grep/convert this file with constructs of their liking. Timestamp of status older than current time minus interval? Then something is fishy, go look. |
|
|
|
|
|
#6 |
|
Aug 2012
New Hampshire
23×101 Posts |
I think this is a solution looking for a problem. prime95 by its mission requires extreme level of accuracy. it's unlikely to have general problems where things are being done out of order or incorrectly or illogically.
|
|
|
|
|
|
#7 | |
|
Mar 2006
479 Posts |
Quote:
Does this sound like a good approach to a solution? If so, I'd be happy to start writing code for p95status. P95 would also have to be updated to listen for and respond to these messages. I haven't looked too deeply into the P95 code, so I'd have to ask for help on where the extension to P95 should go. |
|
|
|
|
|
|
#8 |
|
"/X\(‘-‘)/X\"
Jan 2013
1011011100102 Posts |
I would be in favour of dumping JSON or XML to a file. Let people set up their own web servers or some other mechanism for polling those files. Some might run Nginx, others might use scp, and others might symlink the JSON file to ~/.plan and run fingerd.
Last fiddled with by Mark Rose on 2014-11-11 at 20:56 |
|
|
|
|
|
#9 | |
|
Bemusing Prompter
"Danny"
Dec 2002
California
5·479 Posts |
Quote:
At least that's the case for Windows. Last fiddled with by ixfd64 on 2020-01-03 at 18:53 |
|
|
|
|
|
|
#10 |
|
Jun 2019
3 Posts |
I think in the interest of cross-platform, something like dumping the status to a .txt or .json file that other programs could watch for updates would be the best solution.
As it stands now, monitor programs need to scan the directory for save files, and read those files directly on a semi-regular basis to get progress updates (and those updates only occur every X minutes configured to save the file in the first place). |
|
|
|
|
|
#11 | |
|
"Seth"
Apr 2019
33·11 Posts |
Quote:
|
|
|
|
|
![]() |
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Mail from command line | pepi37 | Linux | 4 | 2015-07-16 22:06 |
| Windows command line | mu5tan6 | Software | 14 | 2015-03-20 17:21 |
| command line switch | wongnog | Information & Answers | 1 | 2008-07-20 11:29 |
| NewPGen from the command line | monst | Software | 19 | 2008-01-31 07:07 |
| MultiSieve from the command line (on Windows) | monst | Software | 7 | 2007-12-18 02:37 |