2004-06-09 19:09:16 +00:00
|
|
|
<?php
|
2004-05-05 17:48:39 +00:00
|
|
|
require_once("docutil.php");
|
2005-02-11 23:34:09 +00:00
|
|
|
page_head("The BOINC command-line client");
|
2004-05-05 17:48:39 +00:00
|
|
|
echo "
|
2005-03-23 06:26:19 +00:00
|
|
|
<h2>Components</h2>
|
2004-05-05 17:48:39 +00:00
|
|
|
<p>
|
2005-02-11 23:34:09 +00:00
|
|
|
The BOINC client software can be run in a command-line
|
|
|
|
(non-graphical) environment.
|
2005-03-23 06:26:19 +00:00
|
|
|
This involves two programs:
|
2005-02-11 23:34:09 +00:00
|
|
|
<ul>
|
|
|
|
<li> The <b>core client</b> (boinc_client),
|
2005-03-23 06:26:19 +00:00
|
|
|
a non-interactive program intended to be run as a background or daemon process.
|
2005-02-11 23:34:09 +00:00
|
|
|
<li> A <b>command tool</b> (boinc_cmd) that provides
|
2005-03-23 06:26:19 +00:00
|
|
|
an interactive command-line interface to a running core client.
|
2005-02-11 23:34:09 +00:00
|
|
|
</ul>
|
2005-03-23 06:26:19 +00:00
|
|
|
Instructions for installing these programs,
|
|
|
|
and for automatic startup of the core client, are
|
|
|
|
<a href=bare_core.php>here</a>.
|
|
|
|
<h2>The core client (boinc_client)</h2>
|
2005-02-11 23:34:09 +00:00
|
|
|
<p>
|
2005-03-23 06:26:19 +00:00
|
|
|
<h3>command-line options</h3>
|
|
|
|
";
|
|
|
|
list_start();
|
2005-03-29 00:55:04 +00:00
|
|
|
list_item("<nobr>-attach_project URL account_key</nobr>",
|
2005-03-23 06:26:19 +00:00
|
|
|
"Attach this computer to a new project."
|
|
|
|
);
|
|
|
|
list_item("-show_projects",
|
|
|
|
"Print a list of projects to which this computer is attached."
|
|
|
|
);
|
|
|
|
|
|
|
|
list_item("-detach_project URL",
|
|
|
|
"Detach this computer from a project."
|
|
|
|
);
|
|
|
|
|
|
|
|
list_item("-reset_project URL",
|
|
|
|
"Clear pending work for a project.
|
|
|
|
Use this if there is a problem that is preventing
|
|
|
|
your computer from working."
|
|
|
|
);
|
|
|
|
|
|
|
|
list_item("-update_prefs URL",
|
|
|
|
"Contact a project's server to obtain new preferences.
|
|
|
|
This will also report completed results
|
|
|
|
and get new work if needed."
|
|
|
|
);
|
|
|
|
|
|
|
|
list_item("-return_results_immediately",
|
|
|
|
"Contact scheduler as soon as any result done."
|
|
|
|
);
|
|
|
|
list_item("-run_cpu_benchmarks",
|
|
|
|
"Run CPU benchmarks.
|
|
|
|
Do this if you have modified your computer's hardware."
|
|
|
|
);
|
|
|
|
list_item("-check_all_logins",
|
|
|
|
"If 'run if user active' preference is off,
|
|
|
|
check for input activity on all current logins;
|
|
|
|
default is to check only local mouse/keyboard"
|
|
|
|
);
|
|
|
|
list_item("-exit_when_idle",
|
|
|
|
"Get, process and report work, then exit."
|
|
|
|
);
|
|
|
|
list_item("-allow_remote_gui_rpc",
|
|
|
|
"Allow GUI RPCs from remote hosts"
|
|
|
|
);
|
|
|
|
list_item("-help",
|
|
|
|
"Show client options."
|
|
|
|
);
|
|
|
|
|
|
|
|
list_item("-version",
|
|
|
|
"Show client version."
|
|
|
|
);
|
|
|
|
list_end();
|
|
|
|
echo "
|
2004-08-25 19:20:45 +00:00
|
|
|
<p>
|
2005-02-11 23:34:09 +00:00
|
|
|
The core client has the following optional environment variables:
|
|
|
|
";
|
|
|
|
list_start();
|
|
|
|
list_item("HTTP_PROXY", "URL of HTTP proxy");
|
|
|
|
list_item("HTTP_USER_NAME", "User name for proxy authentication");
|
|
|
|
list_item("HTTP_USER_PASSWD", "Password for proxy authentication");
|
|
|
|
list_item("SOCKS4_SERVER", "URL of SOCKS 4 server");
|
|
|
|
list_item("SOCKS5_SERVER", "URL of SOCKS 5 server");
|
|
|
|
list_item("SOCKS5_USER", "User name for SOCKS authentication");
|
|
|
|
list_item("SOCKS5_PASSWD", "Password for SOCKS authentication");
|
|
|
|
list_end();
|
2005-02-16 01:21:41 +00:00
|
|
|
echo "
|
2005-03-23 06:26:19 +00:00
|
|
|
<h2>The command tool (boinc_cmd)</h2>
|
2005-02-11 23:34:09 +00:00
|
|
|
<p>
|
2005-02-16 01:21:41 +00:00
|
|
|
The command-line interface program has the following interface:
|
2005-02-11 23:34:09 +00:00
|
|
|
<pre>
|
2005-03-07 06:09:04 +00:00
|
|
|
boinc_cmd [--host hostname] [--passwd passwd] command
|
2005-02-11 23:34:09 +00:00
|
|
|
</pre>
|
|
|
|
The commands are as follows:
|
|
|
|
";
|
|
|
|
list_start();
|
|
|
|
list_item("--get_state", "show client state");
|
|
|
|
list_item("--get_results", "show results");
|
|
|
|
list_item("--get_file_transfers", "show file transfers");
|
|
|
|
list_item("--get_project_status", "show status of all projects");
|
|
|
|
list_item("--get_disk_usage", "Show disk usage by project");
|
2005-04-03 22:01:18 +00:00
|
|
|
list_item("--result URL result_name
|
|
|
|
<br>{suspend | resume | abort | graphics_window | graphics_fullscreen}
|
|
|
|
<br>{--window_station ws} {--desktop dt} {--display dp}
|
|
|
|
",
|
2005-02-16 01:21:41 +00:00
|
|
|
"Do operation on a result, identified by the project master URL
|
|
|
|
and the result name.
|
|
|
|
<ul>
|
|
|
|
<li> suspend: temporarily stop work on result
|
|
|
|
<li> resume: allow work on result
|
|
|
|
<li> abort: permanently stop work on result
|
|
|
|
<li> graphics_window: open graphics in a window.
|
|
|
|
The optional desktop/window_station (Windows) or display (X11)
|
|
|
|
arguments specify the display.
|
|
|
|
<li> graphics_fullscreen: open graphics fullscreen
|
|
|
|
</ul>
|
|
|
|
"
|
2005-02-11 23:34:09 +00:00
|
|
|
);
|
2005-04-03 22:01:18 +00:00
|
|
|
list_item("--project URL
|
2005-02-16 01:21:41 +00:00
|
|
|
<br>{reset | detach | update | suspend | resume | nomorework | allowmorework}
|
2005-04-03 22:01:18 +00:00
|
|
|
",
|
2005-02-16 01:21:41 +00:00
|
|
|
"Do operation on a project, identified by its master URL.
|
|
|
|
<ul>
|
|
|
|
<li>reset: delete current work and get more;
|
|
|
|
<li>detach: delete current work and don't get more;
|
|
|
|
<li>update: contact scheduling server;
|
|
|
|
<li>suspend: stop work for project;
|
|
|
|
<li>result: resume work for projrect;
|
|
|
|
<li>nomorework: finish current work but don't get more;
|
|
|
|
<li>allowmorework: undo nomorework
|
|
|
|
</ul>
|
|
|
|
"
|
2005-02-11 23:34:09 +00:00
|
|
|
);
|
2005-02-16 01:21:41 +00:00
|
|
|
list_item("--project_attach URL auth","Attach to an account");
|
2005-04-03 22:01:18 +00:00
|
|
|
list_item("--file_transfer URL filename
|
|
|
|
{retry | abort}
|
|
|
|
",
|
2005-02-11 23:34:09 +00:00
|
|
|
"Do operation on a file transfer"
|
|
|
|
);
|
|
|
|
list_item("--get_run_mode","Get current run mode");
|
2005-02-16 01:21:41 +00:00
|
|
|
list_item("--set_run_mode {always | auto | never}",
|
|
|
|
"Set run mode.
|
|
|
|
<br>always: do work (network + CPU) always
|
|
|
|
<br>auto: do work only when allowed by preferences
|
|
|
|
<br>never: don't do work (same as suspending all projects)
|
|
|
|
"
|
|
|
|
);
|
2005-02-11 23:34:09 +00:00
|
|
|
list_item("--get_network_mode","Get current network mode");
|
2005-02-16 01:21:41 +00:00
|
|
|
list_item("--set_network_mode {always | auto | never}",
|
|
|
|
"Set network mode
|
|
|
|
<br> Like set_run_mode but applies only to network transfers
|
|
|
|
"
|
|
|
|
);
|
2005-02-11 23:34:09 +00:00
|
|
|
list_item("--get_proxy_settings", "Get proxy settings");
|
2005-02-16 01:21:41 +00:00
|
|
|
list_item(
|
|
|
|
"--set_proxy_settings
|
|
|
|
http_server_name
|
|
|
|
http_server_port
|
|
|
|
http_user_name
|
|
|
|
http_user_passwd
|
|
|
|
socks_server_name
|
|
|
|
socks_server_port
|
|
|
|
socks_version
|
|
|
|
socks5_user_name
|
|
|
|
socks5_user_passwd
|
|
|
|
",
|
|
|
|
"Set proxy settings (all fields are mandatory)"
|
|
|
|
);
|
2005-02-11 23:34:09 +00:00
|
|
|
list_item("--get_messages seqno",
|
|
|
|
"show messages with sequence numbers beyond the given seqno"
|
|
|
|
);
|
|
|
|
list_item("--get_host_info", "Show host info");
|
2005-02-16 01:21:41 +00:00
|
|
|
list_item("--acct_mgr_rpc URL name password",
|
|
|
|
"Instruct core client to contact an account manager server."
|
2005-02-11 23:34:09 +00:00
|
|
|
);
|
|
|
|
list_item("--run_benchmarks", "Run CPU benchmarks");
|
|
|
|
list_item("--get_screensaver_mode", "");
|
2005-02-16 01:21:41 +00:00
|
|
|
list_item(
|
|
|
|
"--set_screensaver_mode on|off blank_time
|
|
|
|
<br>{--desktop desktop}
|
|
|
|
<br>{--window_station window_station}
|
|
|
|
<br>{--display display}
|
|
|
|
",
|
|
|
|
"Tell the core client to start or stop doing fullscreen graphics,
|
|
|
|
and going to black after blank_time seconds.
|
|
|
|
The optional arguments specify which desktop/windows_station (Windows)
|
|
|
|
or display (X11) to use.
|
|
|
|
"
|
|
|
|
);
|
2005-02-11 23:34:09 +00:00
|
|
|
list_item("--quit", "");
|
|
|
|
list_end();
|
2004-05-05 17:48:39 +00:00
|
|
|
page_tail();
|
|
|
|
?>
|