|
NAMElsdistcc - simple distcc server discoverySYNOPSISlsdistcc [OPTIONS] [FORMAT]lsdistcc [OPTIONS] host1 ... DESCRIPTIONlsdistcc autodetects listening distcc servers either by looking in DNS for hosts named according to a given FORMAT, or by checking the host names given on the command line.Hosts are considered good servers based solely on whether their name fits the format and whether they are listening on the right port (and optionally whether they respond when you send them a compile job). Scans for hosts named according to FORMAT (default is "distcc%d"; see printf(3)) and starting from 1, so hosts such as distcc1, distcc2, and so on. Stops after 7 seconds or the first host name that does not resolve. Prints the names of all such servers listening on distcc's port. If a list of host names is given in the command line, lsdistcc will only check those hosts. OPTIONS
EXAMPLESScan for servers named distcc1, distcc2, ... that provide a compiler named gcc-4.6 and include their latencies in the output:$ lsdistcc -l -pgcc-4.6
Scan for a compiler named gcc-4.6 on the servers hosta, somehost, hostx, and hosty: $ lsdistcc -pgcc-4.6 hosta somehost hostx hosty
To use the program in a build script, add the lines: DISTCC_HOSTS=`lsdistcc`
export DISTCC_HOSTS before the line that invokes make. Or, in a Makefile, add the line: export DISTCC_HOSTS = $(shell lsdistcc)
Or use pump(1) which automatically invokes lsdistcc if you set DISTCC_POTENTIAL_HOSTS. EXIT STATUSThe exit status is 0 if any servers were found, and 1 otherwise.Uses 'for i=1... sprintf(format, i)' to construct names of servers, stops after 7 seconds or at second server that doesn't resolve, prints the names of all such servers listening on distcc's port. Default format is distcc%d. SEE ALSOdistcc(1), distccd(1), pump(1), printf(3)http://code.google.com/p/distcc/ AUTHORlsdistcc was written by Dan Kegel, Dongmin Zhang, and Manos Renieris.This manual page was written by Daniel Hartwig for the Debian project.
Visit the GSP FreeBSD Man Page Interface. |