From 6b6cc7b80377e1634e2438781cf7ae2cf32901c6 Mon Sep 17 00:00:00 2001 From: Michele Cereda Date: Sat, 3 Jun 2023 22:03:07 +0200 Subject: [PATCH] feat: boinccmd examples to change modes and read global preference overrides --- knowledge base/boinccmd.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/knowledge base/boinccmd.md b/knowledge base/boinccmd.md index 2747389..cdac253 100644 --- a/knowledge base/boinccmd.md +++ b/knowledge base/boinccmd.md @@ -17,8 +17,10 @@ boinccmd --acct_mgr sync boinccmd --acct_mgr detach # Reread the configuration files. -# Includes any 'app_config.xml' file existing in the projects' folders. +# '--read_cc_config' also includes any 'app_config.xml' file existing in the +# projects' folders. boinccmd --read_cc_config +boinccmd --read_global_prefs_override # Get the host's status. boinccmd --get_simple_gui_info @@ -46,6 +48,15 @@ boinccmd --get_project_status \ | grep "master URL" \ | awk -F ": " '{print $2}' \ | xargs -n 1 -t -I {} boinccmd --project {} nomorework + +# Set run modes. +# 'always' = do work or transfer files always. +# 'auto' = do work or transfer files when allowed by the preferences. +# 'never' = do not work nor transfer files. +# Unless a duration in seconds is given after the mode, the change is permanent. +boinccmd --set_run_mode 'always' +boinccmd --set_gpu_mode 'auto' '10' +boinccmd --set_network_mode 'never' '600' ``` ## Gotchas