Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Sep 2017 19:20:22 -0400
From:      Ernie Luzar <luzar722@gmail.com>
To:        RW <rwmaillists@googlemail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Help scripting dns lookup using awk
Message-ID:  <59BC6036.8040709@gmail.com>
In-Reply-To: <20170915143019.2e02d386@gumby.homeunix.com>
References:  <59BB24E4.6060908@gmail.com> <20170915143019.2e02d386@gumby.homeunix.com>

next in thread | previous in thread | raw e-mail | index | archive | help
RW via freebsd-questions wrote:
> On Thu, 14 Sep 2017 20:55:00 -0400
> Ernie Luzar wrote:
> 
>> The following sh script works, but runs very slow.
> 
> Almost certainly the reason it's slow is that you are doing sequential
> synchronous lookups. Switching  to another language isn't going help
> much. To speed it up you either need to switch to a language with a
> DNS library that supports asynchronous lookups or fire-off parallel
> child processes. The latter is easier.
> 

How would I go about coding a sh script to fire-off parallel child 
processes?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?59BC6036.8040709>