mersenneforum.org Running GPU computing silently(in Windows)
 Register FAQ Search Today's Posts Mark Forums Read

 2022-07-18, 07:45 #1 leonardyan96     "Cassessory" May 2017 Northern China 2×33 Posts Running GPU computing silently(in Windows) I'm using the following steps to startup mfakto automatically in the background every time the computer starts, in a manner similar to prime95:Create a Visual Basic script (run_mfakto.vbs) and place it together with mfakto executable: Code: Set shell = Wscript.createobject("wscript.shell") a = shell.run ("cmd.exe /K [path to your mfakto executable] > [wherever you want]\mfakto.log",0) Use the Task Scheduler to run that script every time the computer boots. I'm using an output redirector in order to monitor the computing progress when I want to do so. Use the Task Manager if you want to kill mfakto. Certainly MISFIT can also be used to talk to PrimeNet automatically.
 2022-07-18, 10:00 #2 leonardyan96     "Cassessory" May 2017 Northern China 2·33 Posts Update:Use Task Manager to check if mfakto is really working. Put your mfakto and script outside any folder with restricted access (e.g. C:\{Users,Windows,Program Files,Program Files (x86)}) to avoid permission-related problem. A dedicated mfakto folder under the root of any partition (use one other than C: if possible) would be a good choice. Replace the /K with /C in the script since we don't need the cmd window after mfakto being killed. If you are still not able to get mfakto automatically started, try letting Windows to start the task when you log in, setting a latency between logging in and starting the task, and/or using the highest permission to run this task. All of them can be done with the Task Scheduler.
 2022-08-24, 20:28 #3 ixfd64 Bemusing Prompter     "Danny" Dec 2002 California 5·499 Posts An alternate way to run a console application "silently" is to use PowerShell: Code: Start-Process -WindowStyle hidden { } It's slightly simpler than making a script or batch file. I also recommend not using Task Manager to kill mfakto because not allowing an application to exit gracefully can cause data loss. However, you can use some simple Python commands to send a SIGINT to a background process. Code: import os import signal os.kill(, signal.SIGINT) Last fiddled with by ixfd64 on 2022-08-24 at 20:29

 Similar Threads Thread Thread Starter Forum Replies Last Post RetroGamer Software 32 2021-11-01 08:30 tuckerkao Information & Answers 3 2021-08-13 06:03 tServo GPU Computing 31 2020-05-25 16:44 enzocreti Computer Science & Computational Number Theory 1 2018-10-03 12:57 fivemack Programming 2 2015-06-30 18:02

All times are UTC. The time now is 12:43.

Tue Feb 7 12:43:42 UTC 2023 up 173 days, 10:12, 1 user, load averages: 2.01, 1.69, 1.47