|lsdistcc(1)||General Commands Manual||lsdistcc(1)|
lsdistcc [OPTIONS] host1 ...
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.
- Displays summary instructions
- Output latency in milliseconds after each hostname (not including DNS latency)
- Print IP address rather than name
- Append ,down to down hosts in host list
- Set number of seconds to stop searching after 
- Set number of milliseconds before retrying gethostbyname 
- Set number of milliseconds before giving up on connect  (0 to inhibit connect)
- Set number of milliseconds before giving up on compile  (0 to inhibit compile)
- Set number of bits of address that must match first host found 
- Set number of extra DNS requests to send 
- Set number of missing DNS entries to tolerate 
- Port to connect to 
- Protocol version to use (1-3) 
- Name of compiler to use [none]
- Append DNS domain name to format
Scan for a compiler named gcc-4.6 on the servers hosta, somehost, hostx, and hosty:
To use the program in a build script, add the lines:
before the line that invokes make. Or, in a Makefile, add the line:
Or use pump(1) which automatically invokes lsdistcc if you set DISTCC_POTENTIAL_HOSTS.
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.
This manual page was written by Daniel Hartwig for the Debian project.
|1 May 2012|