OnWorks favicon

lsdistcc - Online in the Cloud

Run lsdistcc in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command lsdistcc that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator



lsdistcc - simple distcc server discovery


lsdistcc [OPTIONS] [FORMAT]

lsdistcc [OPTIONS] host1 ...


lsdistcc 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


--help Displays summary instructions

-l Output latency in milliseconds after each hostname (not including DNS latency)

-n Print IP address rather than name

-x Append ,down to down hosts in host list

Set number of seconds to stop searching after [7]

Set number of milliseconds before retrying gethostbyname [500]

Set number of milliseconds before giving up on connect [900] (0 to inhibit connect)

Set number of milliseconds before giving up on compile [1500] (0 to inhibit

-mBITS Set number of bits of address that must match first host found [0]

Set number of extra DNS requests to send [1]

Set number of missing DNS entries to tolerate [0]

-rPORT Port to connect to [3632]

Protocol version to use (1-3) [1]

Name of compiler to use [none]

-d Append DNS domain name to format

-v Verbose


Scan 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:


before the line that invokes make. Or, in a Makefile, add the line:

export DISTCC_HOSTS = $(shell lsdistcc)


The 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.

Use lsdistcc online using onworks.net services

Free Servers & Workstations

Download Windows & Linux apps

  • 1
    A set of Python extension modules that
    wrap the cross-platform GUI classes from
    wxWidgets.. Audience: Developers. User
    interface: X Window System (X11), Win32 ...
    Download wxPython
  • 2
    This is the Total War pack file manager
    project, starting from version 1.7. A
    short introduction into Warscape
    modding: ...
    Download packfilemanager
  • 3
    A network traffic tool for measuring
    TCP and UDP performance with metrics
    around both throughput and latency. The
    goals include maintaining an active
    iperf cod...
    Download IPerf2
  • 4
    fre:ac - free audio converter
    fre:ac - free audio converter
    fre:ac is a free audio converter and CD
    ripper for various formats and encoders.
    It features MP3, MP4/M4A, WMA, Ogg
    Vorbis, FLAC, AAC, and Bonk format
    support, ...
    Download fre:ac - free audio converter
  • 5
    Matplotlib is a comprehensive library
    for creating static, animated, and
    interactive visualizations in Python.
    Matplotlib makes easy things easy and
    hard thing...
    Download Matplotlib
  • 6
    Write your chatbot logic once and
    connect it to one of the available
    messaging services, including Amazon
    Alexa, Facebook Messenger, Slack,
    Telegram or even yo...
    Download BotMan
  • More »

Linux commands