![]() |
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:[LIST=1][*]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[I] [path to your mfakto executable] [/I]>[I] [wherever you want][/I]\mfakto.log",0) [/CODE][*]Use the Task Scheduler to run that script every time the computer boots.[/LIST]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. |
Update:[LIST=1][*]Use Task Manager to check if mfakto is[B] really [/B]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.[/LIST]
|
An alternate way to run a console application "silently" is to use PowerShell:
[CODE]Start-Process -WindowStyle hidden { <command> }[/CODE] 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 [C]SIGINT[/C] to a background process. [CODE] import os import signal os.kill(<mfakto PID>, signal.SIGINT) [/CODE] |
| All times are UTC. The time now is 15:09. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.