hcitool lescan is unsuited to running in a pipeline, because it queues up the information in the stdout buffer when piped. Recommend: setlinebuf(stdout); in hcitool.c before the main while loop near line 2436. Bill Cheswick ches at cheswick.com