use select() instead of sleep() for faster execution under Linux
more installation examples